/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* New sophisticated color scheme for financial portal */
:root {
  --primary: #0d7377;
  --secondary: #14213d;
  --accent: #ff6b6b;
  --success: #06d6a0;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark: #2b2d42;
  --gray: #6c757d;
  --border: #dee2e6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.logo {
  text-decoration: none;
  color: var(--dark);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-underline {
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 3px;
  text-underline-offset: 2px;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.nav a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background-color: var(--white);
  color: var(--gray);
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background-color: var(--light-gray);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in:nth-child(2) {
  animation-delay: 0.2s;
  opacity: 0;
}

.animate-fade-in:nth-child(3) {
  animation-delay: 0.4s;
  opacity: 0;
}

.fade-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--light-gray);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--light-gray);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark);
}

.page-header {
  background-color: var(--light-gray);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--gray);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tool-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Currency Widget */
.currency-widget {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.currency-input-group {
  display: flex;
  gap: 0.5rem;
}

.currency-input-group input,
.currency-input-group select,
.currency-result select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.currency-input-group input {
  flex: 1;
}

.currency-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 6px;
}

.currency-result span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  flex: 1;
}

/* VAT Calculator */
.vat-calculator {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vat-calculator input,
.vat-calculator select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.vat-result {
  background-color: var(--light-gray);
  padding: 1rem;
  border-radius: 6px;
}

.vat-result p {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
  font-weight: 500;
}

/* Rates Display */
.rates-display {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rate-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: var(--light-gray);
  border-radius: 6px;
}

.rate-name {
  font-weight: 500;
  color: var(--gray);
}

.rate-value {
  font-weight: 700;
  color: var(--primary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* CTA Box */
.cta-box {
  text-align: center;
  padding: 3rem;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-box p {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

/* Education Grid */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.education-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.education-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.education-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.education-card p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.education-topics {
  list-style: none;
  padding-left: 0;
}

.education-topics li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--dark);
}

.education-topics li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Calculator Section */
.calculator-section {
  margin-bottom: 3rem;
}

.calculator-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.calculator-box {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-weight: 600;
  color: var(--dark);
}

.input-group input,
.input-group select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.calculator-result {
  background-color: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
}

.calculator-result h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item.highlight {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--primary);
}

/* Content Box */
.content-box {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.content-box h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.content-box p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  font-size: 1.125rem;
  color: var(--dark);
}

.disclaimer-box {
  background-color: #fff5f5;
  border-left: 4px solid var(--accent);
}

.disclaimer-box p {
  color: var(--dark);
}

/* Contact Form */
.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-message {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.product-card p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.product-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--dark);
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.news-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 1000;
  transition: bottom 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.cookie-banner.show {
  bottom: 0;
  opacity: 1;
}

.cookie-banner.hide {
  bottom: -100%;
  opacity: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.cookie-content p {
  color: var(--gray);
  margin: 0;
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .calculator-box {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tools-grid,
  .features-grid,
  .education-grid,
  .products-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0;
  }

  .section {
    padding: 2rem 0;
  }
}

/* Enhanced contact info styles */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.contact-info-card p {
  color: var(--gray);
}

.contact-info-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-info-card a:hover {
  color: var(--accent);
}

/* Team section styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-4px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
  color: var(--white);
}

.team-member h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.team-role {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-member p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Values section styles */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateX(4px);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.value-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Stats section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  color: var(--white);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--success);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}
