/* ===== RESET & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg-primary: #000000;
  --bg-card: #1c1c1e;
  --bg-card-hover: #2c2c2e;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --accent-blue: #2997ff;
  --accent-purple: #bf5af2;
  --accent-green: #30d158;
  --accent-orange: #ff9f0a;
  --accent-pink: #ff375f;
  --accent-teal: #64d2ff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ===== ANIMATED GRADIENT BG ===== */
.animated-gradient {
  background: linear-gradient(-45deg, #0a0a0a, #1a1a2e, #16213e, #0f3460);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  position: relative;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== AMBIENT LIGHT ===== */
.ambient-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(41, 151, 255, 0.04), transparent 40%);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .container { padding: 3rem 1.5rem; }
}

/* ===== NAVIGATION ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDown 0.6s ease forwards;
}

@keyframes slideDown {
  to { opacity: 1; transform: translateY(0); }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-name {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

@media (max-width: 639px) {
  .nav-name { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ===== SHOWCASE SLIDER ===== */
.showcase-slider {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--bg-card);
  opacity: 0;
  animation: fadeIn 0.6s ease 0.3s forwards;
}

.showcase-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.showcase-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 21/9;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 639px) {
  .showcase-slide { aspect-ratio: 16/9; }
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.showcase-slide:hover .showcase-img {
  transform: scale(1.03);
}

.showcase-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  min-height: 200px;
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  pointer-events: none;
}

.showcase-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@media (min-width: 640px) { .showcase-title { font-size: 2rem; } }

.showcase-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) { .showcase-desc { font-size: 1rem; } }

.showcase-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  color: #fff;
  font-weight: 500;
  pointer-events: auto;
}

.showcase-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 5;
}

.showcase-btn:hover {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.2);
}

.showcase-prev { left: 1rem; }
.showcase-next { right: 1rem; }

@media (max-width: 639px) {
  .showcase-btn { width: 32px; height: 32px; }
  .showcase-prev { left: 0.5rem; }
  .showcase-next { right: 0.5rem; }
  .showcase-overlay { padding: 1.25rem; }
}

.showcase-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.showcase-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ===== IMPORTANT LINKS ===== */
.ilinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

@media (min-width: 640px) { .ilinks-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ilinks-grid { grid-template-columns: repeat(4, 1fr); } }

.ilink-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s;
  position: relative;
}

.ilink-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.ilink-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--link-color, #2997ff);
}

.ilink-icon svg {
  width: 18px;
  height: 18px;
}

.ilink-title {
  font-size: 0.875rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ilink-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.ilink-card:hover .ilink-arrow {
  opacity: 1;
}

/* ===== BENTO GRID ===== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== BENTO CARD ===== */
.bento-card {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.bento-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bento-card:hover {
  transform: scale(1.02) !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.bento-card .hover-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s;
  pointer-events: none;
  border-radius: 24px;
}

.bento-card:hover .hover-gradient {
  opacity: 1;
}

/* Span classes */
.col-span-2 { grid-column: span 1; }
.row-span-2 { grid-row: span 1; }
.col-span-4 { grid-column: span 1; }

@media (min-width: 640px) {
  .col-span-2 { grid-column: span 2; }
  .row-span-2 { grid-row: span 2; }
}

@media (min-width: 1024px) {
  .col-span-4 { grid-column: span 4; }
}

/* ===== HERO CARD ===== */
.hero-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

@media (min-width: 640px) {
  .hero-card { padding: 2.5rem; }
}

@media (min-width: 1024px) {
  .hero-card { min-height: 500px; }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Profile image */
.profile-image {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
  transition: all 0.5s;
}

@media (min-width: 640px) {
  .profile-image { width: 128px; height: 128px; }
}

.bento-card:hover .profile-image {
  border-color: rgba(41, 151, 255, 0.3);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.bento-card:hover .profile-image img {
  transform: scale(1.1);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.gradient-text {
  background: linear-gradient(135deg, #2997ff, #bf5af2, #ff375f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(135deg, #30d158, #64d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-orange {
  background: linear-gradient(135deg, #ff9f0a, #ff375f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 28rem;
}

@media (min-width: 640px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
}

.btn-primary:hover {
  background: rgba(41, 151, 255, 0.8);
}

.btn-facebook {
  background: #1877F2;
  color: white;
}

.btn-facebook:hover {
  background: rgba(24, 119, 242, 0.8);
}

.btn-outline {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== DECORATIVE BLOBS ===== */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.blob-1 {
  top: 2.5rem;
  right: 2.5rem;
  width: 80px;
  height: 80px;
  background: rgba(41, 151, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.blob-2 {
  bottom: 5rem;
  right: 5rem;
  width: 64px;
  height: 64px;
  background: rgba(191, 90, 242, 0.1);
  animation: float 6s ease-in-out infinite 2s;
}

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

/* ===== STAT CARDS ===== */
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 200px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) { .stat-number { font-size: 3.75rem; } }

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat-sublabel {
  font-size: 0.75rem;
  color: rgba(134, 134, 139, 0.6);
  margin-top: 0.25rem;
}

/* Stars */
.stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.star-icon {
  color: var(--accent-orange);
  width: 14px;
  height: 14px;
}

/* ===== TIME CARD ===== */
.time-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.time-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.time-header svg {
  width: 16px;
  height: 16px;
}

.time-header span {
  font-size: 0.75rem;
  font-weight: 500;
}

.time-display {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) { .time-display { font-size: 2.25rem; } }

.time-zone {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-icon svg {
  width: 16px;
  height: 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== ABOUT CARD ===== */
.about-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.875rem;
}

@media (min-width: 640px) { .about-text { font-size: 1rem; } }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ===== SKILL BARS ===== */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.skill-percent {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.skill-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 9999px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  border-radius: 9999px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== TECH STACK ===== */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
  cursor: default;
}

.tech-tag:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.1);
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.1);
}

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

.project-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.project-icon svg { width: 20px; height: 20px; }

.project-arrow {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.project-card:hover .project-arrow {
  color: var(--text-primary);
}

.project-arrow svg { width: 16px; height: 16px; }

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Project image */
.project-image {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
}

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

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

/* Project gradients */
.project-blue { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(168,85,247,0.2)); }
.project-green { background: linear-gradient(135deg, rgba(48,209,88,0.2), rgba(100,210,255,0.2)); }
.project-orange { background: linear-gradient(135deg, rgba(255,159,10,0.2), rgba(255,55,95,0.2)); }

/* ===== NEWS SECTION ===== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.05);
}

.news-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.news-body {
  padding: 1.25rem;
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--accent-orange);
  font-weight: 500;
  margin-bottom: 0.625rem;
}

.news-date svg {
  opacity: 0.7;
}

.news-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-content {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== LOVE GRID ===== */
.love-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) { .love-grid { grid-template-columns: repeat(4, 1fr); } }

.love-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  transition: background 0.3s;
}

.love-item:hover {
  background: rgba(255,255,255,0.06);
}

.love-item svg { width: 24px; height: 24px; }

.love-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== QUOTE CARD ===== */
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
  padding: 2rem;
}

.quote-mark {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 3.75rem;
  color: rgba(255,255,255,0.05);
  font-family: serif;
  pointer-events: none;
}

.quote-text {
  font-size: 1.125rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
  padding-left: 0.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) { .quote-text { font-size: 1.25rem; } }

.quote-author {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding-left: 0.5rem;
}

/* ===== CONTACT CARD ===== */
.contact-card {
  padding: 2rem;
  text-align: center;
}

@media (min-width: 640px) { .contact-card { padding: 2.5rem; } }

.contact-card .inner {
  max-width: 40rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) { .contact-title { font-size: 1.875rem; } }

.contact-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 3rem;
  padding-bottom: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.6s ease 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (min-width: 640px) { .footer { margin-top: 4rem; } }

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-socials a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: var(--text-primary);
}

.footer-socials svg { width: 20px; height: 20px; }

.footer-text {
  font-size: 0.75rem;
  color: rgba(134, 134, 139, 0.6);
}

.footer-text svg {
  display: inline;
  width: 12px;
  height: 12px;
  color: var(--accent-pink);
  vertical-align: middle;
}

/* ===== VISITOR COUNTER ===== */
.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  display: inline-flex;
}

.visitor-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.visitor-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.visitor-item svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.visitor-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.1);
}

.visitor-online strong {
  color: #30d158;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(48,209,88,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(48,209,88,0); }
}

@media (max-width: 480px) {
  .visitor-counter {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  .visitor-divider {
    width: 40px;
    height: 1px;
  }
}

/* ===== ANIMATION DELAYS ===== */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.35s; }
.delay-5 { transition-delay: 0.4s; }
.delay-6 { transition-delay: 0.45s; }
.delay-7 { transition-delay: 0.5s; }
.delay-8 { transition-delay: 0.55s; }
.delay-9 { transition-delay: 0.6s; }
