/* ==========================================================================
   1. Theme Variables & Base Setup
   ========================================================================== */
:root {
  --font-primary: "Cormorant Garamond", serif;
  --font-secondary: "Open Sans", sans-serif;
  --colors-dark: #000000;
  --colors-light: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--colors-dark);
  color: var(--colors-light);
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hide 000webhost watermark if present */
img[alt="www.000webhost.com"] {
  display: none !important;
}

/* ==========================================================================
   2. Background Video Setup
   ========================================================================== */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* Changed from -1 to 0 so it sits safely in the base layer */
  overflow: hidden;
  background-color: var(--colors-dark);
  pointer-events: none;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
  will-change: transform; /* Forces hardware acceleration on mobile */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* ==========================================================================
   3. Main Content Layout
   ========================================================================== */
.main-container {
  position: relative;
  z-index: 2; /* Explicitly stacked higher than the video wrapper and overlay */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.subtitle {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.title {
  font-family: var(--font-primary);
  font-size: 104px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 24px;
}

.profile-section {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 40px auto;
  padding: 0 10px;
}

.profile-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px auto;
}

.message-text {
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.d-block {
  display: block;
}

/* ==========================================================================
   4. Social Icons & Footer
   ========================================================================== */
.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: center;
  margin-bottom: 24px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn svg {
  width: 100%;
  height: 100%;
  fill: var(--colors-light);
  transition: fill 0.3s ease;
}

.social-btn:hover {
  background: var(--colors-light);
}

.social-btn:hover svg {
  fill: var(--colors-dark);
}

.copyright {
  font-size: 14px;
  opacity: 0.8;
}

/* ==========================================================================
   5. Mobile Responsiveness
   ========================================================================== */
@media screen and (max-width: 920px) {
  .title {
    font-size: 40px;
  }
  
  .subtitle {
    font-size: 20px;
  }
  
  .main-container {
    padding: 60px 12px;
  }
  
  .social-icons {
    gap: 8px;
  }
  
  .social-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}