@charset "utf-8";
/* CSS Document */
/* Using Google Fonts: Cinzel Decorative (headings), Cinzel (body), Cormorant SC (buttons) */

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

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

body {
  color: white;
  background: rgba(0,0,0,1.00);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 20px;
  background-image: url("../images/bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center; /* Aligned to left to show subject */
  background-attachment: fixed;
}

.logo {
  height: 100%;
  width: 100%;
}

/* ============================================
   HEADER / TOP SECTION
   ============================================ */
h1 {
  font-family: 'Cinzel Decorative', Georgia, serif;
  color: white;
  text-align: center;
  font-size: 70px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.5);
  animation: fadeInDown 1s ease-out;
  letter-spacing: 0.05em;
}

p {
  font-family: 'Cinzel', Georgia, serif;
  color: white;
  text-align: center;
  font-size: 30px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
  animation: fadeInUp 1s ease-out;
  letter-spacing: 0.1em;
}

.top {
  padding: 40px 20px;
}

.top p:first-of-type {
  animation-delay: 0.2s;
  animation-fill-mode: backwards;
}

.top p:last-of-type {
  animation-delay: 0.4s;
  animation-fill-mode: backwards;
}

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

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

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

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 rgba(255,255,255,0);
  }
  50% {
    border-color: rgba(255,255,255,0.9);
    box-shadow: 0 0 15px rgba(255,255,255,0.15);
  }
}

/* ============================================
   ERROR PAGE (unchanged)
   ============================================ */
.error_page {
  padding-top: 30vh;
  text-align: center;
  vertical-align: middle;
  height: 80vh;
  text-shadow: 3px 3px #000;
}

.error_page a {
  text-decoration: none;
  color: white;
}

.error_page a:hover {
  color: #333B5B;
  cursor: pointer;
}

/* ============================================
   NAVIGATION BAR / BUTTONS
   ============================================ */
.bar li {
  list-style-type: none;
}

.bar a {
  text-decoration: none;
  color: white;
}

.bar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Cormorant SC', 'Cinzel', Georgia, serif;
  color: white;
  text-align: center;
  font-size: 20px;
  text-transform: uppercase;
  margin: 10px;
}

.bar ul {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.barbutton {
  background-color: rgba(0,0,0,0.80);
  margin: 12px 0;
  padding: 18px 25px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 25px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out backwards, borderGlow 4s ease-in-out infinite;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Staggered animation for buttons */
.bar ul a:nth-child(1) .barbutton { animation-delay: 0.1s, 0s; }
.bar ul a:nth-child(2) .barbutton { animation-delay: 0.15s, 0.5s; }
.bar ul a:nth-child(3) .barbutton { animation-delay: 0.2s, 1s; }
.bar ul a:nth-child(4) .barbutton { animation-delay: 0.25s, 1.5s; }
.bar ul a:nth-child(5) .barbutton { animation-delay: 0.3s, 2s; }
.bar ul a:nth-child(6) .barbutton { animation-delay: 0.35s, 2.5s; }
.bar ul a:nth-child(7) .barbutton { animation-delay: 0.4s, 3s; }
.bar ul a:nth-child(8) .barbutton { animation-delay: 0.45s, 3.5s; }

.barbutton:hover {
  background-color: rgba(255,255,255,0.95);
  color: black;
  cursor: pointer;
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(255,255,255,0.4);
  text-shadow: none;
  animation: none;
  border-color: rgba(255,255,255,1);
}

.barbutton:active {
  transform: scale(0.98);
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.socials {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  gap: 25px;
  animation: fadeIn 1s ease-out 0.6s backwards;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
}

.social-link svg path {
  fill: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255,255,255,0.95);
  border-color: white;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

.social-link:hover svg path {
  fill: black;
}

.social-link:active {
  transform: scale(1) translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 30px 20px 40px;
  font-family: 'Cormorant SC', 'Cinzel', Georgia, serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: fadeIn 1s ease-out 0.8s backwards;
}

.footer span {
  color: rgba(255,255,255,0.7);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  body {
    background-position: 25% center; /* Adjust for tablets */
  }

  .top {
    padding: 30px 15px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  p {
    font-size: 20px;
  }

  .bar {
    font-size: 16px;
    margin: 5px 0;
  }

  .bar ul {
    padding: 0 15px;
  }

  .barbutton {
    margin: 10px 0;
    padding: 16px 20px;
    border-radius: 20px;
  }

  .socials {
    padding: 25px 15px;
    gap: 20px;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  .footer {
    padding: 25px 15px 35px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  body {
    background-position: 20% center; /* Show more of subject on phones */
  }

  .top {
    padding: 25px 10px;
  }

  h1 {
    font-size: 32px;
  }

  p {
    font-size: 16px;
  }

  .bar {
    font-size: 14px;
  }

  .bar ul {
    padding: 0 10px;
  }

  .barbutton {
    margin: 8px 0;
    padding: 14px 15px;
    border-radius: 18px;
  }

  .socials {
    padding: 20px 10px;
    gap: 15px;
  }

  .social-link {
    width: 42px;
    height: 42px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .footer {
    padding: 20px 10px 30px;
    font-size: 10px;
  }
}

/* ============================================
   TOUCH DEVICE IMPROVEMENTS
   ============================================ */
@media (hover: none) {
  .barbutton {
    animation: fadeInUp 0.8s ease-out backwards;
  }

  .barbutton:hover {
    transform: none;
    box-shadow: none;
    background-color: rgba(0,0,0,0.80);
    color: white;
    border-color: rgba(255,255,255,0.6);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  }

  .barbutton:active {
    background-color: rgba(255,255,255,0.95);
    color: black;
    transform: scale(0.98);
    text-shadow: none;
  }

  .social-link:hover {
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.5);
  }

  .social-link:hover svg path {
    fill: white;
  }

  .social-link:active {
    background: rgba(255,255,255,0.95);
    transform: scale(0.95);
  }

  .social-link:active svg path {
    fill: black;
  }
}
