/* ===== CRITICAL CSS FOR INDEX PAGE ===== */
/* DJ Wedding Website - v1.1.20 */
/* This file contains only the CSS needed for index.html (code entry page) */
/* Other pages load full style.css which includes gallery, upload, and lightbox styles */

/* ========== CUSTOM FONT FACES ========== */
/* Orange Avenue DEMO - Elegant heading font */
@font-face {
  font-family: 'Orange Avenue';
  src: url('fonts/OrangeAvenueDEMO-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Orange Avenue';
  src: url('fonts/OrangeAvenueDEMO-Outline.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Nexa - Clean modern sans-serif */
@font-face {
  font-family: 'Nexa';
  src: url('fonts/Nexa-Heavy.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nexa';
  src: url('fonts/Nexa-ExtraLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Nexa', 'Raleway', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #2c3e50;
  background: #faf8f6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography - Wedding Theme */
h1, h2, h3 {
  font-family: 'Orange Avenue', 'Great Vibes', cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h4, h5, h6 {
  font-family: 'Nexa', 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Special accents - names, dates, special sections */
.hero-date,
.hero-subtitle,
.wedding-date,
.couple-names,
.accent-text {
  font-family: 'Orange Avenue', 'Great Vibes', cursive;
  font-weight: 400;
}

/* Form elements and buttons */
button,
input,
textarea,
select,
label,
.btn-primary,
.btn-secondary,
.cta-button,
.upload-button,
.action-button,
.header-btn {
  font-family: 'Nexa', 'Raleway', sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Animated gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 165, 165, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(183, 110, 121, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: gradientShift 20s ease infinite;
}

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

/* ===== HERO SECTION ===== */
.index-hero-combined {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #d4a5a5 0%, #b76e79 50%, #d4a5a5 100%);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
  opacity: 1; /* Show gradient initially as fallback */
  transition: opacity 0.8s ease-in;
}

/* When image is loaded, show it (image will overlay gradient via inline style) */
.hero-bg-image.loaded {
  opacity: 1;
}

.hero-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(139, 157, 158, 0.1) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg-image::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -250px;
  right: -250px;
  animation: float 20s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== HERO CONTENT ===== */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-height: 300px;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: slideUp 0.8s ease-out;
  padding: 20px 15px;
  flex-shrink: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: -2px;
  color: #fff8dc;
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 4px 10px rgba(0, 0, 0, 0.85),
    0 6px 15px rgba(139, 69, 19, 0.8),
    0 8px 20px rgba(0, 0, 0, 0.75),
    2px 2px 0px rgba(184, 134, 11, 0.6);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.title-line-1 {
  font-family: 'Orange Avenue', 'Great Vibes', cursive;
  display: block;
  font-size: 4.8rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 8px;
  color: #ffffff;
}

.title-line-2 {
  font-family: 'Raleway', sans-serif;
  display: block;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff8dc;
}

.title-line-3 {
  font-family: 'Orange Avenue', 'Great Vibes', cursive;
  display: block;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 8px;
  color: #ffffff;
}


.hero-subtitle {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  margin: 0 0 8px 0;
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: 1px;
  opacity: 1;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.7),
    0 4px 8px rgba(0, 0, 0, 0.5);
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 2;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-details,
.btn-access {
  flex: 1;
  min-width: 200px;
  padding: 18px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-icon {
  font-size: 1.4rem;
}

.btn-text {
  display: block;
}

/* ===== ACCESS CODE BUTTON ===== */
.btn-access {
  background: linear-gradient(135deg, #d4a5a5 0%, #b76e79 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 15px rgba(183, 110, 121, 0.3),
    0 8px 30px rgba(183, 110, 121, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

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

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

.btn-access:hover {
  background: linear-gradient(135deg, #e8baba 0%, #c97f88 100%);
  transform: translateY(-4px);
  box-shadow: 
    0 8px 20px rgba(183, 110, 121, 0.4),
    0 12px 40px rgba(183, 110, 121, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-access:active {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 15px rgba(183, 110, 121, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== MODAL STYLES ===== */
.index-form-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.index-form-section.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
}

.form-wrapper {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.index-form-section .code-entry-card {
  background: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 50px 40px;
  border-radius: 30px;
  box-shadow: 
    0 20px 60px rgba(183, 110, 121, 0.2),
    0 0 1px rgba(183, 110, 121, 0.1);
  border: 1px solid rgba(212, 165, 165, 0.2);
  animation: slideUp 0.3s ease-out;
  position: relative;
}

.index-form-section .code-entry-card h2 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #d4a5a5 0%, #b76e79 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 15px 0;
  font-weight: 800;
}

.index-form-section .entry-message {
  color: #666;
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.6;
}

#code-form {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

#code-form input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  border: 2px solid rgba(183, 110, 121, 0.2);
  border-radius: 14px;
  margin: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(212, 165, 165, 0.05);
  font-family: inherit;
  box-sizing: border-box;
}

#code-form input:focus {
  outline: none;
  border-color: #b76e79;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.1), 0 8px 24px rgba(183, 110, 121, 0.12);
  transform: translateY(-2px);
}

#code-form input::placeholder {
  color: #999;
}

.btn-primary {
  width: 100%;
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #d4a5a5 0%, #b76e79 100%);
  color: white;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(183, 110, 121, 0.3);
  margin: 0;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(183, 110, 121, 0.4);
}

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

.btn-close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(183, 110, 121, 0.1);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #b76e79;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-close-modal:hover {
  background: rgba(183, 110, 121, 0.2);
  transform: scale(1.1) rotate(90deg);
}

.btn-close-modal:active {
  transform: scale(0.95) rotate(90deg);
}

.error-message {
  color: #e74c3c;
  margin-top: 15px;
  font-weight: 500;
  font-size: 0.9rem;
  display: none;
}

.error-message:not(:empty) {
  display: block;
}

/* ===== SUCCESS CARD ===== */
.success-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  background: rgba(212, 165, 165, 0.08);
  border: 2px solid rgba(183, 110, 121, 0.2);
  border-radius: 18px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 600;
}

.action-button:hover {
  background: rgba(212, 165, 165, 0.15);
  border-color: #b76e79;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(183, 110, 121, 0.15);
}

.action-button:active {
  transform: translateY(-1px);
}

.action-icon {
  font-size: 2.5rem;
  display: block;
}

.action-text {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .index-hero-combined {
    padding: 0;
    min-height: 100vh;
    position: relative;
    display: block;
  }

  .hero-bg-image {
    background-position: center;
    background-attachment: scroll;
  }

  .hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px 10px;
    min-height: auto;
  }

  .hero-content {
    padding: 30px 20px;
    animation: slideUp 0.6s ease-out;
    max-width: 95%;
    border-radius: 20px;
  }

  .hero-title {
    font-size: 2.5rem;
    margin: 0 0 5px 0;
  }

  .title-line-1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
  }

  .title-line-2 {
    font-size: 2rem;
  }

  .title-line-3 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-buttons {
    width: 100%;
    max-width: 100%;
    gap: 15px;
    padding: 0 15px 40px 15px;
    position: absolute;
    bottom: 0;
  }

  .btn-details,
  .btn-access {
    min-width: 120px;
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .btn-icon {
    font-size: 1.2rem;
  }

  .btn-text {
    display: none;
  }

  .index-form-section {
    padding: 15px;
  }

  .form-wrapper {
    max-width: 100%;
  }

  .index-form-section .code-entry-card {
    padding: 40px 25px;
    border-radius: 24px;
  }

  .index-form-section .code-entry-card h2 {
    font-size: 1.8rem;
    margin: 0 0 12px 0;
  }

  #code-form {
    gap: 18px;
  }

  #code-form input {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .btn-primary {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .success-actions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
  }

  .action-button {
    padding: 18px 15px;
    gap: 8px;
  }

  .action-icon {
    font-size: 2rem;
  }

  .action-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 25px 15px;
    max-width: 90%;
    border-radius: 16px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .title-line-1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }

  .title-line-2 {
    font-size: 1.5rem;
  }

  .title-line-3 {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .hero-buttons {
    gap: 10px;
    padding: 0 10px 30px 10px;
  }

  .btn-details,
  .btn-access {
    min-width: 100px;
    padding: 12px 16px;
    font-size: 0.8rem;
  }

  .index-form-section .code-entry-card {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .index-form-section .code-entry-card h2 {
    font-size: 1.5rem;
  }

  #code-form input {
    padding: 12px 14px;
  }

  .success-actions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .action-button {
    padding: 16px 12px;
  }
}

@media (max-width: 320px) {
  .hero-content {
    padding: 20px 12px;
    max-width: 92%;
    border-radius: 14px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .title-line-1 {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .title-line-2 {
    font-size: 1.1rem;
  }

  .title-line-3 {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .index-form-section .code-entry-card {
    padding: 25px 15px;
  }

  .index-form-section .code-entry-card h2 {
    font-size: 1.3rem;
  }
}

