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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #1f1f1f;
  background-color: #fdfdfd;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  color: #ff6f91;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #2c2c54;
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and Navigation */
.header {
  background: rgba(253, 253, 253, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 111, 145, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand h1 {
  font-size: 1.5rem;
  color: #ff6f91;
  margin-bottom: 0;
}

.nav-brand h1 a {
  color: inherit;
  text-decoration: none;
}

.nav-tagline {
  font-size: 0.8rem;
  color: #2c2c54;
  font-weight: 300;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: #1f1f1f;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, #ff6f91, #2c2c54);
  color: white;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #ff6f91;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdfdfd 0%, #f8f9ff 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  background: linear-gradient(135deg, #ff6f91, #2c2c54);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #2c2c54;
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #ff6f91, #2c2c54);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.6s both;
  box-shadow: 0 10px 30px rgba(255, 111, 145, 0.3);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 111, 145, 0.4);
  color: white;
  text-decoration: none;
}

.hero-stars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20px 30px, #ff6f91, transparent),
    radial-gradient(2px 2px at 40px 70px, #2c2c54, transparent),
    radial-gradient(1px 1px at 90px 40px, #ff6f91, transparent),
    radial-gradient(1px 1px at 130px 80px, #2c2c54, transparent),
    radial-gradient(2px 2px at 160px 30px, #ff6f91, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: twinkle 20s linear infinite;
  opacity: 0.6;
}

/* Articles Section */
.articles-section {
  padding: 5rem 0;
  background: #fdfdfd;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c2c54;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 111, 145, 0.1);
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(255, 111, 145, 0.2);
}

.article-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.article-content {
  padding: 1.5rem;
}

.article-content h3 {
  margin-bottom: 1rem;
}

.article-content h3 a {
  color: #2c2c54;
  text-decoration: none;
}

.article-content h3 a:hover {
  color: #ff6f91;
}

.article-content p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.read-time {
  color: #999;
  font-size: 0.9rem;
}

.article-tag {
  background: linear-gradient(135deg, #ff6f91, #2c2c54);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Love Stories Section */
.love-stories-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #fdfdfd 100%);
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.world-map {
  position: relative;
  height: 400px;
  background: radial-gradient(
    circle at center,
    rgba(255, 111, 145, 0.1) 0%,
    transparent 70%
  );
  border-radius: 20px;
  overflow: hidden;
}

.love-point {
  position: absolute;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.pulse {
  width: 100%;
  height: 100%;
  background: #ff6f91;
  border-radius: 50%;
  animation: pulse 2s infinite;
  position: relative;
}

.pulse::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid #ff6f91;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.tooltip {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 44, 84, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.love-point:hover .tooltip {
  opacity: 1;
}

.connection-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, #ff6f91, transparent, #2c2c54);
  transform-origin: left center;
  animation: drawLine 3s ease-in-out infinite;
  top: var(--start-y);
  left: var(--start-x);
  width: calc(
    sqrt(
        pow(var(--end-x) - var(--start-x), 2) +
          pow(var(--end-y) - var(--start-y), 2)
      ) * 1%
  );
}

/* Page Hero */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #fdfdfd 0%, #f8f9ff 100%);
  text-align: center;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Article Page */
.article-page {
  padding-top: 80px;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
}

.article-header .article-meta {
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-header h1 {
  text-align: center;
  color: #2c2c54;
  margin-bottom: 1rem;
}

.article-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 2rem;
}

.article-header .article-image {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 2rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content h2 {
  color: #2c2c54;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  color: #ff6f91;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: #2c2c54;
}

/* About Page */
.about-content {
  padding: 3rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2,
.about-text h3 {
  color: #2c2c54;
}

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

.values-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.values-list li::before {
  content: "💝";
  position: absolute;
  left: 0;
  top: 0;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.connection-visual {
  position: relative;
  width: 300px;
  height: 300px;
}

.orbit {
  position: absolute;
  border: 2px solid rgba(255, 111, 145, 0.3);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.orbit-1 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-2 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
}

.orbit-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 40s;
}

.center-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  animation: pulse 2s infinite;
}

.floating-heart {
  position: absolute;
  font-size: 1.5rem;
  animation: float 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-heart:nth-child(4) {
  top: 20%;
  left: 20%;
}
.floating-heart:nth-child(5) {
  top: 20%;
  right: 20%;
}
.floating-heart:nth-child(6) {
  bottom: 20%;
  left: 20%;
}
.floating-heart:nth-child(7) {
  bottom: 20%;
  right: 20%;
}

/* Resources Page */
.resources-content {
  padding: 3rem 0;
}

.resources-grid {
  display: grid;
  gap: 3rem;
}

.resource-category h2 {
  color: #2c2c54;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ff6f91;
  padding-bottom: 0.5rem;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ff6f91;
  transition: transform 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-card h3 {
  color: #2c2c54;
  margin-bottom: 0.8rem;
}

.resource-card p {
  color: #666;
  margin-bottom: 1rem;
}

.resource-type {
  display: inline-block;
  background: linear-gradient(135deg, #ff6f91, #2c2c54);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background: #2c2c54;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  color: #ff6f91;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #ccc;
}

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

.footer-column h4 {
  color: #ff6f91;
  margin-bottom: 1rem;
}

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

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

.footer-column a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #ff6f91;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 111, 145, 0.3);
  color: #ccc;
}

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

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes drawLine {
  0% {
    width: 0;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(253, 253, 253, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero-content {
    padding: 1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .connection-visual {
    width: 250px;
    height: 250px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .world-map {
    height: 300px;
  }

  .love-point {
    width: 15px;
    height: 15px;
  }

  .resource-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-content {
    padding: 0.5rem;
  }

  .article-content,
  .article-header {
    padding: 0.5rem;
  }

  .nav-brand h1 {
    font-size: 1.2rem;
  }

  .nav-tagline {
    font-size: 0.7rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
  outline: 2px solid #ff6f91;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-title {
    -webkit-text-fill-color: #2c2c54;
    color: #2c2c54;
  }

  .article-card {
    border: 2px solid #2c2c54;
  }
}

/* Featured Section (ex-articles-section) */
.featured-section {
  padding: 5rem 0;
  background: #fdfdfd;
}

.featured-grid {
  display: grid;
  grid-template-areas:
    "large medium1"
    "large medium2"
    "small small";
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr 0.7fr;
  gap: 2rem;
  margin-top: 2rem;
}

.featured-large {
  grid-area: large;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.featured-medium:first-of-type {
  grid-area: medium1;
}
.featured-medium:last-of-type {
  grid-area: medium2;
}

.featured-small {
  grid-area: small;
  min-height: 220px;
}

.featured-grid .article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-grid .article-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.featured-large .article-image {
  height: 320px;
}
.featured-medium .article-image {
  height: 180px;
}
.featured-small .article-image {
  height: 120px;
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-areas:
      "large"
      "medium1"
      "medium2"
      "small";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .featured-large,
  .featured-medium,
  .featured-small {
    min-height: unset;
  }
  .featured-large .article-image,
  .featured-medium .article-image,
  .featured-small .article-image {
    height: 180px;
  }
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
a,
span,
.article-content,
.section-title,
.section-subtitle,
.article-meta,
.article-tag,
.footer,
.footer-content,
.footer-brand,
.footer-links,
.footer-column,
.footer-bottom {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}
