/* =============================================================
   ZeroSoft - Premium Glassmorphism Theme (Dark & Modern)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Renk Paleti */
  --bg-dark: #0f172a;
  --bg-gradient: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --avatar-size: 140px;
  --container-width: 680px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #030712;
  background-image:
    radial-gradient(at 0% 0%, rgba(30, 58, 138, 0.4) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(15, 23, 42, 0.9) 0px, transparent 55%),
    radial-gradient(at 100% 100%, rgba(88, 28, 135, 0.35) 0px, transparent 55%),
    radial-gradient(at 0% 100%, rgba(30, 64, 175, 0.3) 0px, transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 30px 30px, 30px 30px;
  background-position: center;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Dynamic Aurora Background Effects */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  filter: blur(90px);
}

body::before {
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.25) 0%, transparent 45%);
  animation: auroraBase 20s infinite alternate ease-in-out;
}

body::after {
  background: radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 45%);
  animation: auroraTop 25s infinite alternate ease-in-out;
}

@keyframes auroraBase {
  0% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.3) translate(10vw, -10vh);
  }

  100% {
    transform: scale(0.9) translate(-10vw, 15vh);
  }
}

@keyframes auroraTop {
  0% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.4) translate(-15vw, 10vh);
  }

  100% {
    transform: scale(1.1) translate(15vw, -15vh);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header & Avatar */
.header {
  margin-top: 60px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  width: 100%;
}

.avatar-wrapper {
  position: relative;
  width: var(--avatar-size);
  height: var(--avatar-size);
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(59, 130, 246, 0.5) 100%);
  box-shadow: 0 24px 48px -12px rgba(59, 130, 246, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  filter: blur(16px);
  opacity: 0.6;
  z-index: -1;
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.4;
    transform: scale(0.98);
  }

  100% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-dark);
  background-color: var(--bg-dark);
}

.profile-info h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  /* Tighter layout */
  background: linear-gradient(to right, #ffffff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.profile-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.profile-title {
  display: block;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-bio-container {
  max-width: 480px;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-bio {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.profile-bio.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Adjust number of lines here */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.profile-bio.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.read-more-btn:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.profile-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: nowrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  width: 100%;
  max-width: 200px;
  flex-shrink: 1;
  /* Allow primary button to shrink if needed */
}

.action-btn.icon-only {
  width: 48px;
  height: 48px;
  padding: 0;
  max-width: none;
  flex-shrink: 0;
  /* Keep icon sizing fixed */
}

.action-btn.icon-only .btn-icon {
  margin-right: 0;
}

.action-btn.primary {
  background: var(--accent-primary);
  /* Use primary color */
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.action-btn.primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  stroke-width: 2px;
}

section[aria-label="Bağlantılar"] {
  width: 100%;
}

/* Links Grid */
.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.25);
  border-left-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  min-height: 90px;
  width: 100%;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.5);
  gap: 8px;
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.link-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.link-card:hover::before {
  animation: card-glint 0.8s ease-in-out;
}

@keyframes card-glint {
  100% {
    left: 200%;
  }
}

.link-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  margin-right: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.link-card:hover .link-icon {
  transform: scale(1.15) rotate(-5deg);
}

.link-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  text-align: center;
  flex-grow: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 1px solid transparent;
  width: 100%;
  max-width: 200px;
}

/* Search CTA Button override */
.search-cta {
  margin-bottom: 32px;
  width: 100%;
}

.search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.search-button:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.glint {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-25deg);
  animation: glint 3s infinite;
}

@keyframes glint {
  0% {
    left: -100%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

/* Footer */
footer {
  margin-top: auto;
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  width: 100%;
}

.footer-glass {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.visitor-badge {
  margin-top: 8px;
  font-size: 0.8rem;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 20px;
  color: #60a5fa;
  font-weight: 600;
}

/* Modal */
.phone-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.phone-modal-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.phone-modal {
  background: #1e293b;
  width: 90%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-modal-backdrop:not([hidden]) .phone-modal {
  transform: scale(1);
}

.phone-modal__header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.phone-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.phone-modal__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.phone-modal__close:hover {
  color: var(--text-main);
}

.phone-modal__content {
  padding: 8px 0;
}

.phone-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.phone-list li a {
  display: block;
  padding: 16px 24px;
  color: var(--text-main);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.phone-list li:last-child a {
  border-bottom: none;
}

.phone-list li a:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 32px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.links-grid>* {
  animation: fadeIn 0.6s ease backwards;
}

.links-grid>*:nth-child(1) {
  animation-delay: 0.1s;
}

.links-grid>*:nth-child(2) {
  animation-delay: 0.2s;
}

.links-grid>*:nth-child(3) {
  animation-delay: 0.3s;
}

.links-grid>*:nth-child(4) {
  animation-delay: 0.4s;
}

.links-grid>*:nth-child(5) {
  animation-delay: 0.5s;
}

.links-grid>*:nth-child(6) {
  animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 640px) {
  :root {
    --avatar-size: 120px;
    --container-width: 100%;
  }

  .profile-info h1 {
    font-size: 2.2rem;
  }

  .links-grid {
    gap: 12px;
    padding: 0 10px;
  }

  .link-card {
    padding: 16px 20px;
    min-height: 70px;
  }

  .link-icon {
    width: 28px;
    height: 28px;
    margin-right: 16px;
  }

  .link-title {
    font-size: 1rem;
    text-align: center;
  }
}

/* Phone Modal Contents & Buttons */
.phone-item {
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.phone-item:last-child {
  border-bottom: none;
}

.phone-meta {
  margin-bottom: 12px;
}

.phone-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.phone-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-call {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-call:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.5);
}

.btn-alt {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-alt:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Scroll Lock */
.no-scroll {
  overflow: hidden;
}