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

body {
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url('../videos/video-poster.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.background-video.loaded {
    opacity: 1;
}

.page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3% 5%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
}

/* Left Side Styling */
.page-left {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.logo-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Fish Illustrations */
.fish-illustrations {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 30px;
    z-index: 2;
}

.fish {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.fish-marlin {
    top: 0;
    left: 5%;
    width: 180px;
    height: 120px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 150"><defs><linearGradient id="marlinGrad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:%230066cc;stop-opacity:1" /><stop offset="50%" style="stop-color:%230088ff;stop-opacity:1" /><stop offset="100%" style="stop-color:%230044aa;stop-opacity:1" /></linearGradient></defs><path d="M30 75 L250 75 L240 50 L270 75 L240 100 L250 75" fill="url(%23marlinGrad)" stroke="white" stroke-width="3"/><path d="M30 75 L15 60 L30 45 L30 75" fill="%23ffaa00"/><path d="M30 75 L15 90 L30 105 L30 75" fill="%23ffaa00"/><path d="M80 70 L100 65 L120 70" stroke="white" stroke-width="2" fill="none"/><path d="M80 80 L100 75 L120 80" stroke="white" stroke-width="2" fill="none"/></svg>');
    transform: rotate(-8deg);
}

.fish-mahi {
    top: 50px;
    left: -5%;
    width: 140px;
    height: 100px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 120"><defs><linearGradient id="mahiGrad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:%23ffd700;stop-opacity:1" /><stop offset="50%" style="stop-color:%2300cc66;stop-opacity:1" /><stop offset="100%" style="stop-color:%23ffaa00;stop-opacity:1" /></linearGradient></defs><ellipse cx="100" cy="60" rx="75" ry="50" fill="url(%23mahiGrad)" stroke="%2300aa00" stroke-width="3"/><path d="M25 60 L10 45 L25 30" fill="%2300aa00" stroke="%2300aa00" stroke-width="2"/><path d="M25 60 L10 75 L25 90" fill="%2300aa00" stroke="%2300aa00" stroke-width="2"/><circle cx="140" cy="50" r="8" fill="%23000000"/></svg>');
    transform: rotate(6deg);
}

.fish-tuna {
    top: 80px;
    left: 20%;
    width: 160px;
    height: 90px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 120"><defs><linearGradient id="tunaGrad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:%23c0c0ff;stop-opacity:1" /><stop offset="50%" style="stop-color:%23e0e0ff;stop-opacity:1" /><stop offset="100%" style="stop-color:%23a0a0c0;stop-opacity:1" /></linearGradient></defs><ellipse cx="125" cy="60" rx="90" ry="45" fill="url(%23tunaGrad)" stroke="%23000" stroke-width="2"/><path d="M35 60 L20 45 L35 30" fill="%23ffd700" stroke="%23ffaa00" stroke-width="2"/><path d="M35 60 L20 75 L35 90" fill="%23ffd700" stroke="%23ffaa00" stroke-width="2"/><path d="M80 55 L100 50 L120 55" stroke="%23000" stroke-width="1.5" fill="none"/><path d="M80 65 L100 60 L120 65" stroke="%23000" stroke-width="1.5" fill="none"/></svg>');
    transform: rotate(-4deg);
}

/* Club Emblem */
.club-emblem {
    max-height: calc(100% - 400px);
    width: 100%;
    position: relative;
}

.club-emblem .main-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.club-emblem .logo-text {
    position: absolute;
    top: 48%;
    left:50%;
    height: 20%;
    transform: translateX(-55%);
}

.emblem-text {
    text-align: center;
    color: white;
}

.emblem-line {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.emblem-main {
    font-size: 3.5rem;
    margin: 10px 0;
}

.coordinates {
    color: #b0c4de;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    margin-top: 15px;
    letter-spacing: 0.05em;
}

/* New Zealand Badge */
.nz-badge {
    position: relative;
    margin-top: -40px;
    margin-left: 30px;
    z-index: 2;
    width: 200px;
    height: 200px;
}

.nz-badge::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5a7a 0%, #1a3a5f 100%);
    border: 4px solid #4a90c2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.nz-text {
    position: relative;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 75px 25px;
    text-align: center;
    transform: rotate(-8deg);
    z-index: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Partner Logos */
.partner-logos {
    display: flex;
    flex-direction: row;
    gap: 25px;
    align-items: center;
    margin-top: auto;
    padding-bottom: 3%;
    position: absolute;
    left: 100px;
    bottom: 0;
}

.partner-logo {
    max-height: 160px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Right Side Styling */
.page-right {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-top: 5%;
    padding-bottom: 3%;
}

/* Navigation Menu */
.navigation-menu {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-item:hover {
    transform: translateX(-5px);
    opacity: 0.9;
}

.anchor-icon {
    font-size: 3.5rem;
    color: #0d2143;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
    display: inline-block;
    line-height: 1;
    filter: brightness(0%);
}

.nav-text {
    font-weight: 700;
    font-size: 2.8rem;
    font-style: italic;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* App Links */
.app-links {
    display: flex;
    flex-direction: row;
    gap: 25px;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
}

.app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.app-link:hover {
    transform: translateY(-3px);
}

.app-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease;
}

.app-icon img {
    width: 100%;
}

.app-swellmap {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
}

.app-swellmap svg {
    transform: scale(1.1);
}

.app-windy {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
}

.app-windy svg {
    font-weight: bold;
}

.app-fisheries {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
}

.app-label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .emblem-line {
        font-size: 2rem;
    }
    
    .emblem-main {
        font-size: 2.8rem;
    }
    
    .nav-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .page {
        flex-direction: column;
        padding: 20px 15px;
        position: relative;
        min-height: 100vh;
    }
    
    .page-left,
    .page-right {
        width: 100%;
        height: auto;
    }

    .page-left {
        margin-bottom: 30px;
    }
    
    .logo-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .club-emblem {
        max-height: none;
        width: 100%;
        position: relative;
        min-height: 300px;
    }

    .club-emblem .main-logo {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .club-emblem .logo-text {
        position: absolute;
        top: 48%;
        left: 50%;
        height: 20%;
        width: auto;
        transform: translateX(-50%);
        max-width: 90%;
    }
    
    .navigation-menu {
        align-items: flex-start;
        gap: 25px;
        width: 100%;
        margin-top: 20px;
    }

    .nav-item {
        gap: 12px;
        width: 100%;
        padding: 8px 0;
    }

    .anchor-icon {
        font-size: 2.5rem;
        flex-shrink: 0;
    }

    .nav-text {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .app-links {
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .app-icon {
        width: 80px;
        height: 80px;
    }

    .partner-logos {
        position: relative;
        left: 0;
        bottom: 0;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
        padding-bottom: 0;
    }

    .partner-logo {
        max-height: 100px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 15px 10px;
    }

    .club-emblem .logo-text {
        top: 48%;
        height: 18%;
        max-width: 85%;
    }

    .navigation-menu {
        gap: 20px;
        margin-top: 15px;
    }

    .nav-item {
        gap: 10px;
        padding: 6px 0;
    }

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

    .nav-text {
        font-size: 1.4rem;
    }

    .app-links {
        gap: 15px;
        margin-top: 25px;
    }

    .app-icon {
        width: 70px;
        height: 70px;
    }

    .partner-logos {
        gap: 12px;
        margin-top: 15px;
    }

    .partner-logo {
        max-height: 80px;
    }
}
