/* Global styles */
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background-color: #0a0e14;
  color: #f1f5f9;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1f2e;
}

::-webkit-scrollbar-thumb {
  background: #00d4ff;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ff88;
}

/* Animations */
@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Utility classes */
.tech-grid {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridPulse 8s ease-in-out infinite;
}

.glow-border {
  position: relative;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #00d4ff, #00ff88);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.glow-border:hover::before {
  opacity: 0.5;
}

.card-tech {
  background: linear-gradient(
    135deg,
    rgba(26, 31, 46, 0.9) 0%,
    rgba(45, 53, 72, 0.9) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

.card-tech:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.animate-slideDown {
  animation: slideDown 0.6s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 1s ease-out forwards;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Project hover preview */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-preview {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.project-card:hover .project-preview {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 400px;
  background: #0a0e14;
  border-left: 1px solid rgba(0, 212, 255, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 100;
  overflow-y: auto;
  padding: 2rem;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 99;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  color: #d1d5db;
  transition: color 0.3s;
  padding: 0.5rem 0;
  border-bottom: 1px solid #374151;
}

.mobile-menu-link:hover {
  color: #00d4ff;
}

/* Keep contact button styling in mobile menu */
.mobile-menu-link.bg-accentCyan {
  color: #0a0e14 !important;
}

.mobile-menu-link.bg-accentCyan:hover {
  color: #0a0e14 !important;
}

/* Navigation links */
.nav-link {
  color: #d1d5db;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #00d4ff;
}

.nav-link.active {
  color: #00d4ff;
}

/* Code accent */
.code-accent::before {
  content: "// ";
  color: #00d4ff;
  opacity: 0.6;
}

/* Scroll to top button */
#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  padding: 1rem;
  background: #00d4ff;
  color: #0a0e14;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
}

#scrollToTop.visible {
  opacity: 1;
  pointer-events: all;
}

#scrollToTop:hover {
  background: #00ff88;
  transform: translateY(-4px);
}

/* Language Switcher */
.lang-btn {
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.lang-btn:hover {
  color: #00d4ff;
}

.lang-btn.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
}

/* Project Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  pointer-events: all;
}

.project-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.project-modal-content {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(26, 31, 46, 0.98) 0%,
    rgba(45, 53, 72, 0.98) 100%
  );
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 1rem;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.project-modal.active .project-modal-content {
  transform: scale(1);
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 0.5rem;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.project-modal-close:hover {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  transform: rotate(90deg);
}

.project-modal-header {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
}

.project-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 14, 20, 0.8) 100%
  );
}

.project-modal-body {
  padding: 2rem;
}

.project-modal-title {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1rem;
}

.project-modal-description {
  color: #9ca3af;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.project-modal-section {
  margin-bottom: 2rem;
}

.project-modal-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #00d4ff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-modal-tech-badge {
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 0.5rem;
  color: #00d4ff;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.project-modal-info-item {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 0.5rem;
}

.project-modal-info-label {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.project-modal-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.project-modal-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-modal-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-modal-features li:last-child {
  border-bottom: none;
}

.project-modal-features li::before {
  content: "✓";
  color: #00ff88;
  font-weight: bold;
  font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .project-modal-content {
    max-height: 95vh;
  }

  .project-modal-header {
    height: 200px;
  }

  .project-modal-body {
    padding: 1.5rem;
  }

  .project-modal-title {
    font-size: 1.5rem;
  }

  .project-modal-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom scrollbar for modal */
.project-modal-content::-webkit-scrollbar {
  width: 8px;
}

.project-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.project-modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 4px;
}

.project-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.7);
}

/* Team Member Cards - Hover Effect */
.team-member-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.team-member-card:hover .team-member-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.team-member-avatar {
  transition: all 0.3s ease;
}

/* Team Member Modal */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.team-modal.active {
  opacity: 1;
  pointer-events: all;
}

.team-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.team-modal-content {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(26, 31, 46, 0.98) 0%,
    rgba(45, 53, 72, 0.98) 100%
  );
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.team-modal.active .team-modal-content {
  transform: scale(1);
}

.team-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 0.5rem;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.team-modal-close:hover {
  background: rgba(0, 212, 255, 0.2);
  color: #00d4ff;
  transform: rotate(90deg);
}

.team-modal-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.team-modal-avatar {
  width: 120px !important;
  height: 120px !important;
  margin: 0 auto 1.5rem;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-origin: border-box;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(0, 212, 255, 0.3);
  background-color: #333;
  overflow: hidden;
}

.team-modal-name {
  font-size: 1.75rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.team-modal-role {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: "Courier New", monospace;
}

.team-modal-body {
  padding: 2rem;
}

.team-modal-section {
  margin-bottom: 2rem;
}

.team-modal-section:last-child {
  margin-bottom: 0;
}

.team-modal-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #00d4ff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-modal-bio {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 0.95rem;
}

.team-modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-modal-skill-badge {
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 0.5rem;
  color: #00d4ff;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "Courier New", monospace;
}

.team-modal-links {
  display: flex;
  gap: 1rem;
}

.team-modal-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 0.5rem;
  color: #00d4ff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s;
}

.team-modal-link:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.team-modal-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .team-modal-content {
    max-height: 95vh;
  }

  .team-modal-header {
    padding: 1.5rem;
  }

  .team-modal-body {
    padding: 1.5rem;
  }

  .team-modal-name {
    font-size: 1.5rem;
  }

  .team-modal-links {
    flex-direction: column;
  }
}

/* Custom scrollbar for team modal */
.team-modal-content::-webkit-scrollbar {
  width: 8px;
}

.team-modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.team-modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
  border-radius: 4px;
}

.team-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.7);
}

/* Show More Card - Neon Glow Effect (Static) */
#showMoreCard {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(26, 31, 46, 0.9) 0%,
    rgba(45, 53, 72, 0.9) 100%
  );
  border: 2px solid #00d4ff;
  box-shadow:
    0 0 10px rgba(0, 212, 255, 0.3),
    0 0 20px rgba(0, 212, 255, 0.2),
    0 0 30px rgba(0, 212, 255, 0.1),
    inset 0 0 10px rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

#showMoreCard::before,
#showMoreCard::after {
  content: none;
}
#showMoreCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

#showMoreCard:hover::before {
  opacity: 0.6;
}

#showMoreCard:hover::after {
  opacity: 1;
  background: radial-gradient(
    circle,
    rgba(0, 255, 136, 0.25) 0%,
    transparent 70%
  );
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1f2e 0%, #0a0e14 100%);
  border-top: 2px solid #00d4ff;
  backdrop-filter: blur(10px);
  z-index: 9998;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-notice.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .cookie-notice-content {
    padding: 1rem;
  }

  .cookie-notice .flex {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-notice button {
    align-self: flex-start;
  }
}

/* Code editor responsive fixes */
#codeEditor {
  overflow-x: auto;
  white-space: nowrap;
}

#codeEditor > div {
  white-space: nowrap;
}

/* Tablet és mobil - tördelés engedélyezése */
@media (max-width: 768px) {
  #codeEditor {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  #codeEditor > div {
    white-space: pre-wrap;
    word-wrap: break-word;
  }
}

/* Mobile - kisebb betű + tördelés */
@media (max-width: 640px) {
  #codeEditor {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 1rem;
  }
}

/* Extra small mobile - még kisebb betű */
@media (max-width: 375px) {
  #codeEditor {
    font-size: 0.7rem;
    line-height: 1.35;
    padding: 0.875rem;
  }
}
