/* Hide scrollbar completely */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

* {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

::-webkit-scrollbar-track {
  display: none;
}

::-webkit-scrollbar-thumb {
  display: none;
}

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.dark .glass {
  background: rgba(17, 19, 24, 0.8);
}

/* Modal animations */
#cv-modal,
#contact-modal {
  animation: fadeIn 0.2s ease-in;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  height: 100vh;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Admin section */
.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent container width changes on language switch */
#home > div {
  width: 100%;
  min-width: 0;
}

#home .flex-1 {
  min-width: 0;
  width: 100%;
}

/* Prevent horizontal overflow on language switch */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Hero section text overflow fix */
#home h1 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#home p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 400px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease-out forwards;
  opacity: 0;
  transform: translateX(400px);
}

.dark .toast {
  background: rgba(17, 19, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast.toast-success {
  border-left: 4px solid #10b981;
}

.toast.toast-error {
  border-left: 4px solid #ef4444;
}

.toast.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
}

.toast-success .toast-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.toast-info .toast-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.toast-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
}

.dark .toast-content {
  color: #f3f4f6;
}

.toast-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  color: #6b7280;
  transition: all 0.2s;
}

.toast-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
}

.dark .toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

@keyframes toastSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(400px);
  }
}

.toast.toast-exit {
  animation: toastSlideOut 0.3s ease-in forwards;
}

/* Confirmation Modal */
.confirmation-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.confirmation-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.3s ease-out;
}

.dark .confirmation-modal {
  background: rgba(17, 19, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f2937;
}

.dark .confirmation-modal-title {
  color: #f3f4f6;
}

.confirmation-modal-message {
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 24px;
}

.dark .confirmation-modal-message {
  color: #9ca3af;
}

.confirmation-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirmation-modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.confirmation-modal-btn-cancel {
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
}

.confirmation-modal-btn-cancel:hover {
  background: rgba(0, 0, 0, 0.1);
}

.dark .confirmation-modal-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

.dark .confirmation-modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.confirmation-modal-btn-confirm {
  background: #ef4444;
  color: white;
}

.confirmation-modal-btn-confirm:hover {
  background: #dc2626;
}

.confirmation-modal-btn-primary {
  background: #3b82f6;
  color: white;
}

.confirmation-modal-btn-primary:hover {
  background: #2563eb;
}

.confirmation-modal-btn-danger {
  background: #ef4444;
  color: white;
}

.confirmation-modal-btn-danger:hover {
  background: #dc2626;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Floating animation for hero visual */
@keyframes animate-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: animate-float 6s ease-in-out infinite;
}
