* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #70c7ba;
  --secondary: #49eacb;
  --dark: #231f20;
  --gray: #b6b6b6;
  --light-bg: #f8f9fa;
  --white: #ffffff;
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

h1,
h2,
h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

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

/* Auth Controls */
.auth-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Added inline login form styles */
.login-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--white);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-form input {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: "Rubik", sans-serif;
  width: 140px;
}

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

.login-form input::placeholder {
  color: var(--gray);
}

.edit-mode-indicator {
  background-color: var(--secondary);
  color: var(--dark);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.btn-auth {
  background-color: var(--dark);
  color: var(--white);
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-auth:hover {
  background-color: #3a3637;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(112, 199, 186, 0.95) 0%, rgba(73, 234, 203, 0.95) 100%), url("hero-bg.jpg")
    center / cover;
  color: var(--white);
  padding: 140px 20px 100px;
  text-align: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(112, 199, 186, 0.9) 0%, rgba(73, 234, 203, 0.85) 100%);
  z-index: 1;
}

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

.hero h1 {
  font-size: 56px;
  margin-bottom: 24px;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

/* About Section */
.about-section {
  background-color: var(--light-bg);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.about-image {
  flex-shrink: 0;
}

.about-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary);
  box-shadow: 0 8px 32px rgba(112, 199, 186, 0.3);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 8px;
  color: var(--dark);
}

.about-birth {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 20px;
  font-style: italic;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #4a4a4a;
}

/* Content Sections */
.content-section {
  padding: 80px 20px;
}

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

.content-section h2 {
  font-size: 42px;
  margin-bottom: 24px;
  color: var(--dark);
}

.content-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #4a4a4a;
  max-width: 900px;
}

.comparison-intro {
  margin-bottom: 48px;
  font-size: 20px;
  color: var(--gray);
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.comparison-card {
  background-color: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 32px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.comparison-card.highlight {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(112, 199, 186, 0.05) 0%, rgba(73, 234, 203, 0.05) 100%);
}

.year {
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.price {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.asset-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.asset-row:last-child {
  border-bottom: none;
}

.asset-label {
  font-weight: 500;
  color: var(--gray);
}

.asset-value {
  font-weight: 600;
  color: var(--dark);
}

/* Content with image layout */
.content-with-image {
  display: flex;
  align-items: center;
  gap: 60px;
}

.content-with-image.reverse {
  flex-direction: row-reverse;
}

.content-text {
  flex: 1;
}

.content-image {
  flex: 1;
  max-width: 500px;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Asset icons styling */
.asset-icons {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin: 48px 0;
}

.asset-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.asset-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(112, 199, 186, 0.3);
  transition: transform 0.3s;
}

.asset-icon:hover img {
  transform: scale(1.1);
}

.asset-icon span {
  font-weight: 600;
  font-size: 18px;
  color: var(--dark);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

/* Conclusion */
.conclusion {
  background-color: var(--dark);
  color: var(--white);
}

.conclusion h2 {
  color: var(--primary);
}

.conclusion p {
  color: var(--white);
}

/* Conclusion with image layout */
.conclusion-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.conclusion-text {
  flex: 1;
}

.conclusion-image {
  flex: 1;
  max-width: 500px;
}

.conclusion-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 3px solid var(--primary);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 32px 20px;
  text-align: center;
}

footer p {
  color: var(--gray);
  font-size: 14px;
}

/* Editable Elements */
.editable {
  position: relative;
  cursor: text;
  transition: background-color 0.2s;
}

.editable:hover {
  background-color: rgba(112, 199, 186, 0.1);
}

.editable.editing {
  background-color: rgba(73, 234, 203, 0.2);
  padding: 8px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  /* Added responsive styles for inline login form */
  .login-form {
    flex-direction: column;
    gap: 8px;
  }

  .login-form input {
    width: 160px;
  }

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

  .about-image img {
    width: 150px;
    height: 150px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .content-section h2 {
    font-size: 32px;
  }

  .content-section p {
    font-size: 16px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .auth-controls {
    flex-direction: column;
    align-items: flex-end;
  }

  .content-with-image,
  .content-with-image.reverse,
  .conclusion-content {
    flex-direction: column;
  }

  .content-image,
  .conclusion-image {
    max-width: 100%;
  }

  .asset-icons {
    gap: 40px;
  }

  .asset-icon img {
    width: 60px;
    height: 60px;
  }

  .asset-icon span {
    font-size: 14px;
  }
}
