/* Preloader Styles */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

body.loaded #loader-wrapper {
  opacity: 0;
  visibility: hidden;
}

.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: min(520px, 92vw);
}
.toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  color: var(--text-primary);
  animation: toast-in 0.22s ease forwards;
}
.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); }
.toast.info { border-color: rgba(59, 130, 246, 0.5); }
.toast-message {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.toast-close {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 6px;
}
.toast-close:hover { color: var(--text-primary); }
@keyframes toast-in {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(300px, 90vw);
}

.terminal-loader {
  width: 100%;
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.terminal-header {
  background: #333;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
  color: #999;
  font-size: 11px;
  margin-left: 10px;
  font-family: monospace;
}

.terminal-body {
  padding: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #fff;
  min-height: 120px;
}

.code-line {
  margin-bottom: 5px;
  opacity: 0;
  transform: translateY(5px);
  animation: typingIn 0.3s forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.8s; }
.code-line:nth-child(3) { animation-delay: 1.4s; }
.code-line:nth-child(4) { animation-delay: 2.0s; }

.cmd { color: #f1fa8c; }
.arg { color: #50fa7b; }
.txt { color: #8be9fd; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #fff;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

.loader-percentage {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-1);
}

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

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

:root {
  --bg-color: #0b0f19;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-1: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-hover: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 40px 20px;
  box-sizing: border-box;
}
main {
  margin: auto;
  width: 100%;
}

/* Görsellerin sürüklenmesini engelleme */
img {
  -webkit-user-drag: none;
}

/* Background animated blobs */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at center, #111827 0%, #030712 100%);
}

.blob {
  position: absolute;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-1);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: var(--accent-2);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  width: 30vw;
  height: 30vw;
  background: var(--accent-3);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

.blob {
  will-change: transform;
}

/* Container */
.container {
  width: 100%;
  max-width: 450px;

  z-index: 2;
  margin: 1rem auto;
  padding: 1rem;
}

/* Glassmorphism Card */
.card {
  width: 100%;
  border-radius: 24px;
  position: relative;
  transition: transform 0.1s ease;
}

.card-inner {
  will-change: transform;
  backface-visibility: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease;

}

.card:hover .card-inner {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Avatar */
.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.5rem;
  transform: translateZ(30px);
}

.avatar-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-1), var(--accent-2), var(--accent-3));
  animation: spin 4s linear infinite;
  z-index: 1;
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-color);
  z-index: 2;
  background-color: var(--bg-color);
}

.avatar-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 4px solid var(--bg-color);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 2;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Text Elements */
.badge {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  color: #a5b4fc;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
  transform: translateZ(20px);
}

.name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: linear-gradient(to right, #fff, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transform: translateZ(25px);
  text-align: center;
}

.title {
  font-size: 1rem;
  color: var(--accent-1);
  font-weight: 500;
  margin-bottom: 1.25rem;
  transform: translateZ(20px);
}

.description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  transform: translateZ(15px);
}

/* Links / Buttons */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem;
  min-height: 48px; /* Minimum tap target height */
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

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

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

.primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

/* Specific Phone & Mail Colors */
.primary.phone {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
}
.primary.phone:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
  border-color: #34d399;
}

.primary.mail {
  background: rgba(234, 67, 53, 0.1);
  border-color: #ea4335;
  color: #ea4335;
}
.primary.mail:hover {
  background: rgba(234, 67, 53, 0.2);
  box-shadow: 0 4px 15px rgba(234, 67, 53, 0.2);
  border-color: #f87171;
}

/* Button Group for Copy */
.btn-group {
  display: flex;
  gap: 10px;
  width: 100%;
}
.btn-group .btn { flex: 1; }

.copy-btn {
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.copy-btn:hover {
  background: var(--btn-hover);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn.copied {
  color: #10b981;
  border-color: #10b981;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.social {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
}

.social:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Specific Social Colors on Hover */
.social.whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25d366;
  color: #25d366;
}

.social.facebook {
  background: rgba(24, 119, 242, 0.1);
  border-color: #1877f2;
  color: #1877f2;
}

.social.instagram {
  background: rgba(225, 48, 108, 0.1);
  border-color: #e1306c;
  color: #e1306c;
}

.social.x-twitter {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Footer */
footer {
  margin-top: 2rem;
  padding-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .container {
    max-width: 100%;
    padding-left: max(0.25rem, env(safe-area-inset-left));
    padding-right: max(0.25rem, env(safe-area-inset-right));
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .card-inner {
    padding: 4rem 0.9rem 1.75rem; /* Extra top padding to avoid overlap with fixed controls */
    border-radius: 18px;
  }

  .top-controls {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    gap: 0.5rem;
  }
  .lang-toggle, .admin-toggle {
    width: 38px; height: 38px;
  }

  .action-buttons-row {
    gap: 1rem;
  }
  
  .name {
    font-size: 1.5rem;
  }

  /* Admin Modal Mobile Fixes */
  .admin-header {
    padding: 1rem 1rem;
  }
  .admin-tabs {
    padding: 0 1rem 10px 1rem;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }
  .admin-tabs::-webkit-scrollbar {
    height: 4px;
    background: transparent;
  }
  .admin-tabs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
  }
  .tab-content {
    padding: 0 1rem;
  }

  /* Performance Optimizations for Mobile */
  .card-inner {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .blob {
    filter: blur(40px);
    animation-duration: 40s;
  }
}

@media (max-width: 360px) {
  .card-inner {
    padding: 4rem 1rem 1.75rem; /* Preserve top padding for controls */
  }
  .description {
    font-size: 0.9rem;
  }
  .terminal-body {
    font-size: 12px;
  }
}

/* --- NEW PREMIUM FEATURES CSS --- */

/* Feature Variables */
:root {
  --bg-gradient-1: #111827; 
  --bg-gradient-2: #030712;
  --modal-overlay: rgba(0,0,0,0.8);
}

.background {
  background: radial-gradient(circle at center, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
}

/* Top Controls (Theme & Lang toggle container) */
.top-controls {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10;
  display: flex;
  gap: 1rem;
}

/* Lang Toggle Button */
.lang-toggle {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  width: 45px; height: 45px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: inherit;
}
.lang-toggle:hover {
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.3);
}

.action-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  transform: translateZ(20px);
  width: 100%;
}

.action-btn {
  background: var(--btn-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: var(--btn-hover);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.action-btn svg { width: 20px; height: 20px; }

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-title { margin-bottom: 0.5rem; font-size: 1.5rem; }
.modal-desc { margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.qr-image {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  -webkit-user-drag: none;
}
.modal-close-btn {
  background: var(--btn-bg);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: var(--btn-hover);
}

.project-modal {
  max-width: 380px;
  width: 90%;
}

.admin-form label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: left;
}

/* Status Badge */
.status-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  padding: 5px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}
.status-badge.busy .status-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.status-badge.away .status-dot { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.status-text {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Tech Slider */
.tech-slider-container {
  width: 100%;
  overflow: hidden;
  margin: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.tech-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll 20s linear infinite;
}
.tech-track span {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--btn-bg);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Projects Section */
.projects-section {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

/* Services */
.services-section {
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  margin-bottom: 1.75rem;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.service-card {
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  flex: 0 0 auto;
}
.service-icon svg { width: 20px; height: 20px; display: block; }
.service-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.service-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.project-card {
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.project-card:hover {
  background: var(--btn-hover);
  border-color: var(--accent-1);
}
.project-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
}
.project-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}
.project-icon-img {
  width: 20px;
  height: 20px;
  display: block;
}
.project-info {
  flex: 1;
  min-width: 0;
}
.project-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-category {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Admin Modals & Inputs */


.admin-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  color: var(--text-primary);
}

.admin-input-group { margin: 1rem 0; }
.admin-input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--btn-bg);
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}
.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.primary-btn {
  background: var(--accent-1);
  border-color: var(--accent-1);
}

/* Admin Panel Content */
.admin-panel-content {
  width: 90%;
  max-width: 500px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  border-radius: 20px;
  max-height: 80vh;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden; /* Clips scrollbar perfectly to the border radius */
}

.admin-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  z-index: 10;
}

.admin-close-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.admin-close-icon:hover {
  color: var(--text-primary);
}

.admin-scrollable {
  flex: 1;
  overflow-y: auto;
  padding-top: 1.5rem;
}

/* Custom Scrollbar for admin-scrollable */
.admin-scrollable::-webkit-scrollbar {
  width: 8px;
}
.admin-scrollable::-webkit-scrollbar-track {
  background: transparent;
}
.admin-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.admin-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding: 0 2rem 10px 2rem;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.tab-btn.active {
  color: var(--accent-1);
  border-bottom: 2px solid var(--accent-1);
}
.tab-content { display: none; padding: 0 2rem; }
.tab-content.active { display: block; padding-bottom: 2rem; }

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}
.admin-form input, .admin-form select, .admin-form textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--btn-bg);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.admin-form select option {
  background-color: #1e293b;
  color: #fff;
}
.add-btn {
  background: var(--accent-1);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--btn-bg);
  padding: 10px;
  border-radius: 8px;
  gap: 10px;
}
.admin-item span {
  flex: 1;
  word-break: break-word;
  font-size: 0.9rem;
}
.delete-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

/* Stats UI */
.stats-container {
  padding: 1rem 0;
}
.stat-card {
  background: var(--btn-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.stat-icon {
  font-size: 2rem;
  background: rgba(59, 130, 246, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stats-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  opacity: 0.7;
}
.stats-reset-btn {
  width: 100%;
  margin-bottom: 0.75rem;
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}
.stats-reset-btn:hover {
  background: rgba(239, 68, 68, 0.22);
}
.admin-panel-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.danger-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}
.danger-btn:hover {
  background: rgba(239, 68, 68, 0.22);
}



/* --- PREMIUM ANIMATIONS & SCROLL REVEAL --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.action-btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.action-btn:hover {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.project-card, .service-card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.project-card:hover, .service-card:hover {
  background: var(--btn-hover);
  border-color: var(--accent-1);
}
