/* ============================================
   KONTAKT.CSS - WARM CONNECT DESIGN
   Professional, Inviting, Modern
   ============================================ */

/* ============================================
   VARIABLES - WARM PALETTE
   ============================================ */
:root {
  /* Warm Colors */
  --peach-primary: #ff9a76;
  --peach-light: #ffb396;
  --coral: #ff6b6b;
  --coral-dark: #ee5a52;
  --gold: #d4af37;
  --gold-light: #f4d03f;
  
  /* Neutrals */
  --cream: #fef9f3;
  --cream-dark: #f5f0e8;
  --white: #ffffff;
  --gray-light: #f0ece6;
  --gray-medium: #c4c0b8;
  --gray-dark: #5a5550;
  --black: #2c2824;
  
  /* Semantic */
  --success: #10b981;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Warm Gradient Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 154, 118, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.05) translate(20px, -20px);
  }
}

/* ============================================
   SKIP LINK
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--coral);
  color: white;
  padding: var(--space-sm);
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-link {
  position: fixed;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: 100;
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-full);
  color: var(--gray-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.back-link a:hover {
  background: var(--peach-primary);
  color: white;
  border-color: var(--peach-primary);
  transform: translateX(-5px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   CONTAINER - SPLIT LAYOUT
   ============================================ */
.container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 45% 55%;
  position: relative;
  z-index: 1;
}

/* ============================================
   INFO SECTION (LEFT)
   ============================================ */
.info-section {
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, rgba(255, 154, 118, 0.04), rgba(212, 175, 55, 0.03));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xl);
}

.info-header {
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid var(--peach-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.main-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: var(--space-md);
}

.gradient-text {
  background: linear-gradient(135deg, var(--peach-primary), var(--coral), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-card {
  background: white;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: var(--transition-normal);
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }

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

.info-card:hover {
  border-color: var(--peach-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.card-content p {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.email-text {
  font-family: 'Courier New', monospace;
  color: var(--coral);
  font-weight: 600;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--cream-dark);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--gray-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 0.5rem;
}

.copy-btn:hover {
  background: var(--peach-primary);
  color: white;
  transform: scale(1.05);
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-top: 0.5rem;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* ============================================
   SOCIAL SECTION
   ============================================ */
.social-section {
  animation: fadeIn 0.6s ease-out 0.4s both;
}

.social-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: var(--space-sm);
}

.social-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  color: var(--gray-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-normal);
}

.social-btn.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-btn.github:hover {
  background: #333;
  border-color: #333;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   FUN FACT
   ============================================ */
.fun-fact {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(255, 154, 118, 0.08), rgba(212, 175, 55, 0.06));
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  animation: fadeIn 0.6s ease-out 0.5s both;
}

.fact-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.fun-fact p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-dark);
}

/* ============================================
   FORM SECTION (RIGHT)
   ============================================ */
.form-section {
  padding: var(--space-2xl) var(--space-xl);
  background: white;
  display: flex;
  align-items: center;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
}

#contact-form {
  width: 100%;
  max-width: 600px;
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-header {
  margin-bottom: var(--space-xl);
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--gray-dark);
  font-size: 1rem;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.required {
  color: var(--coral);
  font-weight: 700;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 1rem;
  padding-right: 3rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  color: var(--black);
  background: var(--cream);
  transition: var(--transition-normal);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--peach-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 154, 118, 0.1);
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1rem;
}

.input-icon,
.validation-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.4;
  pointer-events: none;
}

.textarea-wrapper .input-icon,
.textarea-wrapper .validation-icon {
  top: 1rem;
  transform: none;
}

.validation-icon {
  color: var(--success);
  opacity: 0;
  transition: var(--transition-fast);
}

.form-group.valid .validation-icon {
  opacity: 1;
}

.form-group.valid input,
.form-group.valid textarea {
  border-color: var(--success);
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.03);
}

.error-message {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.form-group.error .error-message {
  display: block;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--gray-medium);
  margin-top: 0.5rem;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--peach-primary), var(--coral));
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.btn-loading {
  display: none;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .btn-icon {
  display: none;
}

.submit-btn.loading .btn-loading {
  display: block;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   SUCCESS & ERROR MESSAGES
   ============================================ */
.success-message,
.error-alert {
  display: none;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
  animation: slideDown 0.4s ease-out;
}

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

.success-message.show,
.error-alert.show {
  display: block;
}

.success-message {
  background: rgba(16, 185, 129, 0.08);
  border: 2px solid var(--success);
  text-align: center;
}

.success-icon {
  margin: 0 auto var(--space-sm);
  width: 48px;
  height: 48px;
  color: var(--success);
}

.success-icon svg {
  animation: checkmark 0.6s ease-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0) rotate(-45deg);
  }
  50% {
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.success-message h3 {
  font-size: 1.3rem;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.success-message p {
  color: var(--gray-dark);
}

.error-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 2px solid var(--error);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.error-alert svg {
  color: var(--error);
  flex-shrink: 0;
}

.error-alert h3 {
  font-size: 1.1rem;
  color: var(--error);
  margin-bottom: 0.25rem;
}

.error-alert p {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.error-alert a {
  color: var(--coral);
  font-weight: 600;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: -100px;
  right: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--black);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-weight: 600;
  z-index: 10000;
  transition: var(--transition-normal);
}

.toast.show {
  bottom: var(--space-lg);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 968px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  .info-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .form-section {
    padding: var(--space-xl) var(--space-md);
    box-shadow: none;
  }
  
  .back-link {
    top: var(--space-sm);
    left: var(--space-sm);
  }
  
  .back-link a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .main-title {
    font-size: 2.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .social-buttons {
    flex-direction: column;
  }
  
  .social-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .info-section,
  .form-section {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .toast {
    right: var(--space-sm);
    left: var(--space-sm);
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--peach-primary);
  outline-offset: 3px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  body::before,
  .back-link,
  .social-section,
  .submit-btn {
    display: none;
  }
  
  .container {
    grid-template-columns: 1fr;
  }
}