/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #ffffff;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-white {
  background-color: #ffffff;
}

/* Container */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 4rem;
}

.profile-image {
  margin-bottom: 1.5rem;
}

.profile-image img {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  border: 4px solid #f3f4f6;
  display: block;
}

.main-title {
  font-size: 3rem;
  font-weight: 300;
  color: #111827;
  margin-bottom: 1rem;
}

.title-divider {
  width: 6rem;
  height: 1px;
  background-color: #d1d5db;
  margin: 0 auto 2rem auto;
}

.intro-text {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.75;
  max-width: 48rem;
  margin: 0 auto;
}

.intro-text p {
  margin-bottom: 1rem;
}

/* Sections */
.section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: #111827;
  margin-bottom: 2rem;
  text-align: center;
}

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

.project-card {
  position: relative;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s ease;
  overflow: hidden;
  display: block;
}

.project-card:hover {
  border-color: #d1d5db;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #111827;
  transition: color 0.2s ease;
}

.project-card:hover .project-title {
  color: #2563eb;
}

.external-icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  transition: color 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.project-card:hover .external-icon {
  color: #2563eb;
}

.project-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.property-card {
  position: relative;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s ease;
  overflow: hidden;
  display: block;
}

.property-card:hover {
  border-color: #d1d5db;
}

.property-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.property-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-content {
  padding: 1.5rem;
}

.property-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.property-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #111827;
  transition: color 0.2s ease;
}

.property-card:hover .property-title {
  color: #ef4444;
}

.external-icon-red {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  transition: color 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.property-card:hover .external-icon-red {
  color: #ef4444;
}

.property-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Info Button */
.info-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 1rem;
  height: 1rem;
  color: #6b7280;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

.modal-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
}

.modal-close:hover {
  color: #6b7280;
}

.modal-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.75;
  white-space: pre-line;
}

.modal-features {
  margin-bottom: 1.5rem;
}

.features-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.75rem;
}

.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.features-list li::before {
  content: "✓";
  color: #2563eb;
  font-weight: bold;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.features-list li span {
  color: #374151;
  font-size: 0.875rem;
}

.modal-links {
  margin-bottom: 1rem;
}

.modal-links.hidden {
  display: none;
}

.links-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.75rem;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-item {
  display: block;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.link-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.link-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.link-title {
  font-weight: 500;
  color: #111827;
  transition: color 0.2s ease;
}

.link-item:hover .link-title {
  color: #2563eb;
}

.link-icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.link-item:hover .link-icon {
  color: #2563eb;
}

.link-description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-link {
  color: #9ca3af;
  transition: color 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  color: #6b7280;
}

.social-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-text {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
  
  .projects-grid,
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: 1rem;
    padding: 1rem;
  }
}