/* Existing Styles (Updated) */
body {
    margin: 0;
    padding-top: 0px;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, rgba(42, 107, 151, 0.9), rgba(22, 50, 75, 0.9)), url('../../media/home/circle.svg') repeat;
}

.container {
    max-width: none;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(to bottom, rgba(42, 107, 151, 0.9), rgba(22, 50, 75, 0.9)), url('../../media/home/circle.svg') repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

.site-navbar {
    background-color: #333;
    padding: 10px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.site-navbar li {
    margin-right: 20px;
}

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

/* Header Section with Emblem */
.header-image {
    width: 100%;
    padding: 0px 0;
    background: linear-gradient(to bottom, rgba(42, 107, 151, 0.9), rgba(22, 50, 75, 0.9)), url('../../media/home/circle.svg') repeat;
    min-height: calc(92vh + 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2; /* Ensure it sits above the sailboat layer */
    overflow: visible; /* Allow sailboats to overflow */
}

/* Emblem Container - Now sits above sailboats */
.emblem-container {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(119, 119, 119, 0.06) 0%, transparent 100%); /* Much lighter glow */
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: bounceIn 1.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
    z-index: 10;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================
   EMBLEM — Clean interactive button treatment
   Gentle press + hover, no square focus ring
   ============================================= */

.emblem {
    width: 100%;
    height: 100%;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    border: none;
    transition: transform 0.12s cubic-bezier(0.4, 0.0, 0.2, 1),
                box-shadow 0.12s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.emblem:hover {
    transform: scale(1.015);
}

.emblem:active {
    transform: scale(0.98) translateY(1px);
    transition: transform 0.05s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Winniscape Title */
.winniscape-title-container {
    margin-top: 10px;
}

.winniscape-title {
    font-family: 'Wallpoet', sans-serif;
    font-size: 68px;
    background: linear-gradient(to bottom, #93ddb5, #20c3d8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
}

/* Lake Photo Section */
.lake-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(to top, #A3DFFA 0%, transparent 50%);
}

.lake-photo-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.lake-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Enhanced Vignette Effect */
.lake-photo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

/* =============================================
   SAILBOAT ANIMATION LAYER
   ============================================= */

/* Sailboat Layer - Lives behind the emblem */
#sailboat-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;           /* Covers the header area */
    z-index: 0;              /* Behind everything in .header-image */
    pointer-events: none;
    overflow: visible;
}

/* Individual sailboat styling */
.sailboat {
    position: absolute;
    width: 64px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    image-rendering: crisp-edges;
    opacity: 1;
    mix-blend-mode: normal;
}

/* Prevent horizontal scroll when boat sails off right edge */
.header-image {
    overflow-x: hidden;
}

/* =============================================
   MOBILE RESPONSIVENESS — Homepage Only
   ============================================= */

@media (max-width: 768px) {

  /* Slightly bigger emblem on mobile */
  .emblem-container {
    width: 230px !important;
    height: 230px !important;
    padding: 15px !important;
  }

  /* Remove blue tap highlight when tapping the emblem */
  .emblem-container,
  .emblem-container img {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
  }

  /* Title size */
  .winniscape-title {
    font-size: 28px !important;
  }

  /* Reduce header height */
  .header-image {
    min-height: 72vh !important;
  }

  /* Shorter lake photo section */
  .lake-section {
    height: 280px !important;
  }

  /* Make sailboats smaller on mobile */
  .sailboat {
    width: 44px !important;
  }

  /* Tighter navbar */
  .site-navbar {
    padding: 8px 12px;
  }

  .site-navbar li {
    margin-right: 10px;
  }
}