* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
:root {
  --primary-color: #8b6f47;
  --primary-dark: #6b5437;
  --secondary-color: #a67c52;
  --accent-color: #c19a6b;
  --text-dark: #2c2416;
  --text-medium: #5a4a3a;
  --text-light: #8b7a6a;
  --bg-light: #faf8f5;
  --bg-cream: #f5f1eb;
  --bg-white: #ffffff;
  --border-color: #e5ddd5;

  --bg-color: #e9ecef;
  --calc-bg: #ffffff;
  --display-bg: #3d719a;
  --btn-light: #f0f4f7;
  --btn-dark: #b0c4de;
  --btn-blue: #9fb6cd;
  --text-color: #000;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Lato", sans-serif;

  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #3b82f6;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f4f7;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #f0f4f7;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f0f4f7;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: #f0f4f7;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background:var(--accent-blue) ;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #f0f4f7;
  margin: 3px 0;
  transition: var(--transition);
}

:root {
  --primary: #3a86ff;
  --success: #2ecc71;
  --danger: #e74c3c;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gray: #6c757d;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin:5rem 0 30px 0;
  padding: 20px;
}

h1 {
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.calculator-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.input-section,
.results-section {
  flex: 1;
  min-width: 300px;
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px var(--shadow);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary);
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

input,
select {
  width: 100%;
  padding: 14px;
  border: 2px solid #e1e5eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.currency-input {
  position: relative;
}

.currency-symbol {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--gray);
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

button {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.calculate-btn {
  background-color: var(--primary);
  color: white;
}

.reset-btn {
  background-color: #f8f9fa;
  color: var(--gray);
  border: 2px solid #e1e5eb;
}

.calculate-btn:hover {
  background-color: #2a75ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.reset-btn:hover {
  background-color: #e9ecef;
  transform: translateY(-3px);
}

.result-card {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.result-title {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
}

.profit {
  color: var(--success);
}

.loss {
  color: var(--danger);
}

.neutral {
  color: var(--dark);
}

.profit-breakdown {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-top: 25px;
}

.breakdown-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e1e5eb;
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-label {
  color: var(--gray);
}

.breakdown-value {
  font-weight: 600;
}

footer {
  text-align: center;
  color: var(--gray);
  padding: 20px;
  margin-top: 20px;
  font-size: 0.9rem;
}

.crypto-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.crypto-icon {
  font-size: 2rem;
  color: var(--dark);
  transition: transform 0.3s;
}

.crypto-icon:hover {
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .calculator-container {
    flex-direction: column;
  }

  .input-section,
  .results-section {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  .button-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .input-section,
  .results-section {
    padding: 20px;
  }

  .result-value {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}
.how-to-use {
  margin-top: 40px;
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
}
.how-to-use h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}
.how-to-use ol {
  list-style-type: decimal;
  padding-left: 20px;
}
.how-to-use li {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text-medium);
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -110%;
    width: 95%;
    text-align: center;
    background: #2a75ff;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
.footer-bottom {
  background-color: #3b82f6;
  border-top: 1px solid rgba(245, 241, 235, 0.2);
  padding-top: 1rem;
  text-align: center;
}
.footer-bottom a {
  text-decoration: none;
  color: #f0f4f7;
  margin: 2px;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-bottom p {
  color: #f0f4f7;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

