/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #1865c9;
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-section {
  flex: 1;
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

.header-info {
  display: flex;
  gap: 30px;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.info-icon {
  font-size: 1.2rem;
}

.header-nav {
  padding: 15px 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  justify-content: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Main Content */
.main {
  flex: 1;
  background: #ffffff;
}

/* Hero Section */
.hero {
  background: #033361;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #1865c9;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button {
  display: inline-block;
  background: #1865c9;
  color: white;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
  background: #1865c9;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

/* Content Section */
.content-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.content-main {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #1865c9;
}

.content-main h3 {
  color: #1a1a1a;
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.content-main h4 {
  color: #1865c9;
  font-size: 1.4rem;
  margin: 30px 0 15px 0;
  font-weight: 600;
}

.content-main p {
  color: #4a4a4a;
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #1865c9;
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.sidebar-card h4 {
  color: #1a1a1a;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.sidebar-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Calculators Section */
.calculators-section {
  padding: 80px 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.calc-card {
  background: white;
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #1865c9;
}

.calc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
  border-color: #1865c9;
}

.calc-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
}

.calc-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #1a1a1a;
  font-weight: 600;
}

.calc-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.calc-badge {
  display: inline-block;
  background: #1865c9;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 60px 0 40px 0;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #1865c9;
  font-weight: 700;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: white;
  font-weight: 600;
}

.footer-section p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: #1865c9;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: rgba(255, 107, 53, 0.2);
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: #1865c9;
  transform: translateY(-3px);
  border-color: #1865c9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
}

.footer-bottom-content {
  text-align: center;
}

.footer-bottom-content p {
  color: #cccccc;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  margin: 2% auto;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 35px;
  border-bottom: 1px solid #eee;
  background: #1865c9;
  color: white;
  border-radius: 20px 20px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.close {
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  font-weight: 500;
}

.tab-btn:hover {
  background: #e9ecef;
  color: #333;
}

.tab-btn.active {
  color: #1865c9;
  border-bottom-color: #1865c9;
  background: white;
  font-weight: 600;
}

/* Modal Body */
.modal-body {
  padding: 35px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Calculator Styles */
.calculator {
  max-width: 500px;
  margin: 0 auto;
}

.calc-group {
  margin-bottom: 25px;
}

.calc-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1rem;
}

.calc-group input,
.calc-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.calc-group input:focus,
.calc-group select:focus {
  outline: none;
  border-color: #1865c9;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.calc-btn {
  background: #1865c9;
  color: white;
  border: none;
  padding: 18px 35px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin: 25px 0;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.calc-btn:hover {
  background: #0c48ca;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.result {
  background: #f8f9fa;
  border: 2px solid #1865c9;
  border-radius: 15px;
  padding: 25px;
  margin-top: 25px;
  text-align: center;
}

.result h3 {
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 600;
}

.result-value {
  font-size: 1.6rem;
  font-weight: bold;
  color: #1865c9;
}

/* Content Styles */
.contact-info {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  margin: 25px 0;
  border-left: 4px solid #1865c9;
}

.tab-content h3 {
  color: #1a1a1a;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
}

.tab-content h4 {
  color: #1865c9;
  margin: 25px 0 15px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.tab-content ul {
  margin-left: 25px;
  margin-bottom: 20px;
}

.tab-content li {
  margin-bottom: 8px;
  color: #4a4a4a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .header-info {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 20px;
  }

  .logo {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-main {
    padding: 30px 25px;
  }

  .calculators-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .modal-header {
    padding: 20px 25px;
  }

  .modal-body {
    padding: 25px;
  }

  .modal-tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 15px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-info {
    display: none;
  }

  .calc-card {
    padding: 25px 20px;
  }

  .calc-icon {
    font-size: 3rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .content-section {
    padding: 60px 0;
  }

  .calculators-section {
    padding: 60px 0;
  }
}

/* Animation for modal */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal.show .modal-content {
  animation: modalFadeIn 0.3s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
