/* ========================================
   Minimal Modern Profile Site
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #00d4aa;
  --primary-dim: #00a888;
  --dark: #0f0f0f;
  --darker: #0a0a0a;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-tertiary: #707070;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--darker);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 212, 170, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Header Section */
header {
  text-align: center;
  padding: 5rem 2rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

header p.tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* Section Styling */
section {
  padding: 2.5rem 2rem;
  max-width: 800px;
  margin: 1.5rem auto;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  transition: border-color 0.3s ease;
}

section:hover {
  border-color: rgba(0, 212, 170, 0.2);
}

section h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* Skills List */
#skills ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

#skills li {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
}

#skills li:hover {
  background: rgba(0, 212, 170, 0.05);
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-2px);
}

/* Projects Section */
.project {
  margin-top: 1rem;
}

.project h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

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

.project li {
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.project li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

/* SNS Links Section */
.sns-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--sns-max-w, 400px);
  width: 100%;
  margin: 1.5rem auto 0;
}

.sns-btn {
  --accent: #888;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  font-weight: 500;
}

.sns-btn .icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: 0 0 22px;
  transition: transform 0.2s ease;
}

.sns-btn .label {
  font-size: 0.95rem;
  font-weight: 500;
}

.sns-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
  transform: translateX(3px);
}

.sns-btn:hover .icon {
  transform: scale(1.1);
}

/* Brand Colors */
.sns-btn.github {
  --accent: #ffffff;
}

.sns-btn.twitter {
  --accent: #1DA1F2;
}

.sns-btn.discord {
  --accent: #5865F2;
}

.sns-btn.booth {
  --accent: #fc4d50;
}

.sns-btn.zenn {
  --accent: #3ea8ff;
}

/* SNS Info (non-clickable) */
.sns-info {
  --accent: #888;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 500;
}

.sns-info .icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: 0 0 22px;
}

.sns-info .label {
  font-size: 0.95rem;
  font-weight: 500;
}

.sns-info.discord-info {
  --accent: #5865F2;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

footer h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.email-link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.email-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--primary);
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease-out;
}

section:nth-child(2) {
  animation-delay: 0.1s;
}

section:nth-child(3) {
  animation-delay: 0.2s;
}

section:nth-child(4) {
  animation-delay: 0.3s;
}

footer {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Responsive Design */
@media (max-width: 768px) {
  section {
    padding: 2rem 1.5rem;
    margin: 1.25rem 1rem;
  }

  header {
    padding: 4rem 1.5rem 2.5rem;
  }

  #skills ul {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-dim);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection Styling */
::selection {
  background: var(--primary);
  color: var(--darker);
}

::-moz-selection {
  background: var(--primary);
  color: var(--darker);
}