/* ==========================================
   1. GLOBAL VARIABLES & RESET
   ========================================== */
:root {
  --bg-dark: #090a0f;
  --bg-card: #12151e;
  --accent-cyan: #00f2fe;
  --accent-purple: #4facfe;
  --accent-pink: #f72585;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --glass: rgba(15, 23, 42, 0.85);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* Rögzített fejléc miatti eltolás */
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(247, 37, 133, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Common Section Headers */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-logo-wrapper,
.hero-image-wrapper {
  flex: 0 0 220px;
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-content {
  max-width: 700px;
  text-align: left;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--text-muted) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   4. SERVICES SECTION
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================
   5. CONTACT SECTION
   ========================================== */
.contact-section {
  padding: 4rem 2rem 6rem;
}

.contact-card {
  max-width: 750px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}

/* Vízszintes elrendezés a fotó és a gombok számára */
.contact-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: left;
}

/* Kerek, szolid fényű profilfotó */
.contact-profile {
  flex-shrink: 0;
}

.contact-profile-img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-text {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* E-mail gomb & másolás ikon */
.email-action-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
  padding: 4px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
  max-width: 100%;
  align-self: flex-start;
}

a.contact-email-btn {
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  padding: 0.7rem 1.2rem;
  word-break: break-all;
}

.copy-icon-btn {
  background: rgba(15, 23, 42, 0.6);
  border: none;
  color: #ffffff;
  padding: 0.7rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.copy-icon-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: scale(1.08);
}

.copy-toast {
  opacity: 0;
  visibility: hidden;
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 1.2rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   6. FOOTER
   ========================================== */
footer {
  text-align: center;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 868px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-logo-wrapper,
  .hero-image-wrapper {
    flex: 0 0 180px;
    width: 180px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .contact-body {
    flex-direction: column;
    text-align: center;
  }

  .email-action-wrapper {
    align-self: center;
  }
}
