/* ==========================================================================
   MAIN.CSS - Gold Theme Foundation for All Pages
   ========================================================================== */

/* CSS Custom Properties
   ========================================================================== */
:root {
    --gold-primary: #ffd700;
    --gold-secondary: #ff6b35;
    --dark-bg: #0a0a0a;
    --light-text: #f0e6d2;
    --success-green: #4ade80;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 215, 0, 0.3);
    --glass-border-hover: rgba(255, 215, 0, 0.8);
    --gold-glow: rgba(255, 215, 0, 0.4);
    --nav-bg: rgba(0, 0, 0, 0.3);
    --nav-bg-hover: rgba(0, 0, 0, 0.6);
    --nav-bg-mobile: rgba(0, 0, 0, 0.7);
    --mobile-menu-bg: rgba(0, 0, 0, 0.95);
}

/* Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", serif;
    overflow-x: hidden;
    background: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
}

/* Animated Background
   ========================================================================== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(45deg, #1a0f1f, #2d1b3d, #1f2937, #0f172a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating Particles
   ========================================================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: radial-gradient(
        circle,
        var(--gold-primary),
        var(--gold-secondary)
    );
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10%,
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Navigation
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transition: all 0.3s ease;
}

nav:hover {
    background: var(--nav-bg-hover);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Styles */
.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.logo-baybayin {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-latin {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(5px);
}

.logo:hover .logo-baybayin {
    opacity: 0;
    transform: translateY(-5px);
}

.logo:hover .logo-latin {
    opacity: 1;
    transform: translateY(0);
}

.logo:hover {
    transform: scale(1.1);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--gold-primary);
}

.nav-links a.active::after {
    width: 100%;
}

/* Style for inactive nav items */
.nav-links a[href="javascript:void(0)"] {
    opacity: 0.6;
}

.nav-links a[href="javascript:void(0)"]:hover {
    color: var(--light-text);
    transform: none;
    cursor: not-allowed;
}

.nav-links a[href="javascript:void(0)"]:hover::after {
    width: 0;
}

/* Hamburger Menu
   ========================================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
    background: transparent;
    border: none;
    outline: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gold-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger:active {
    transform: scale(0.95);
}

/* Mobile Menu
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    height: 100dvh;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    border-left: 1px solid var(--glass-border);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    padding-top: calc(80px + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    opacity: 0;
    transform: translateX(20px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.mobile-menu.active .mobile-menu-links li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(1) {
    transition-delay: 0.1s;
}
.mobile-menu.active .mobile-menu-links li:nth-child(2) {
    transition-delay: 0.15s;
}
.mobile-menu.active .mobile-menu-links li:nth-child(3) {
    transition-delay: 0.2s;
}
.mobile-menu.active .mobile-menu-links li:nth-child(4) {
    transition-delay: 0.25s;
}
.mobile-menu.active .mobile-menu-links li:nth-child(5) {
    transition-delay: 0.3s;
}
.mobile-menu.active .mobile-menu-links li:nth-child(6) {
    transition-delay: 0.35s;
}
.mobile-menu.active .mobile-menu-links li:nth-child(7) {
    transition-delay: 0.4s;
}

.mobile-menu-links a {
    display: block;
    padding: 15px 25px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gold-primary);
    transition: height 0.3s ease;
}

.mobile-menu-links a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
    padding-left: 35px;
}

.mobile-menu-links a:hover::before {
    height: 60%;
}

.mobile-menu-links a[href="javascript:void(0)"] {
    opacity: 0.6;
}

.mobile-menu-links a[href="javascript:void(0)"]:hover {
    background: none;
    color: var(--light-text);
    padding-left: 25px;
    cursor: not-allowed;
}

.mobile-menu-links a[href="javascript:void(0)"]:hover::before {
    height: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Typography & Animations
   ========================================================================== */
@keyframes goldShimmer {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

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

/* Common Text Gradients */
.text-gradient {
    background: linear-gradient(
        45deg,
        var(--gold-primary),
        var(--gold-secondary),
        var(--gold-primary)
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 3s ease infinite;
}

/* Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid;
    cursor: pointer;
    font-family: "Georgia", serif;
}

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

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--gold-glow);
}

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

.btn-primary {
    background: linear-gradient(
        45deg,
        var(--gold-primary),
        var(--gold-secondary)
    );
    color: var(--dark-bg);
    border-color: transparent;
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-secondary:hover {
    background: linear-gradient(
        45deg,
        var(--gold-primary),
        var(--gold-secondary)
    );
    color: var(--dark-bg);
    border-color: transparent;
}

/* Card Styles
   ========================================================================== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    padding: 35px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.card:hover::before {
    transform: scale(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    background: linear-gradient(
        45deg,
        var(--gold-primary),
        var(--gold-secondary)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--dark-bg);
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 24px;
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.card-description {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

/* Wave Animation
   ========================================================================== */
.waves-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 1;
}

.boats-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

.boat {
    position: absolute;
    width: 80px;
    height: 60px;
    opacity: 0.9;
}

.boat:nth-child(1) {
    animation: sailBoat1 25s infinite linear;
    bottom: 70px;
}

.boat:nth-child(2) {
    animation: sailBoat2 30s infinite linear;
    bottom: 60px;
    transform: scale(0.7);
    animation-delay: -10s;
}

.boat:nth-child(3) {
    animation: sailBoat3 35s infinite linear;
    bottom: 65px;
    transform: scale(0.9);
    animation-delay: -20s;
}

@keyframes sailBoat1 {
    0% {
        left: -100px;
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(4px);
    }
    75% {
        transform: translateY(-4px);
    }
    100% {
        left: calc(100% + 100px);
        transform: translateY(0px);
    }
}

@keyframes sailBoat2 {
    0% {
        left: -100px;
        transform: translateY(0px) scale(0.7);
    }
    30% {
        transform: translateY(-6px) scale(0.7);
    }
    60% {
        transform: translateY(3px) scale(0.7);
    }
    80% {
        transform: translateY(-3px) scale(0.7);
    }
    100% {
        left: calc(100% + 100px);
        transform: translateY(0px) scale(0.7);
    }
}

@keyframes sailBoat3 {
    0% {
        left: -100px;
        transform: translateY(0px) scale(0.9);
    }
    20% {
        transform: translateY(-10px) scale(0.9);
    }
    40% {
        transform: translateY(5px) scale(0.9);
    }
    70% {
        transform: translateY(-5px) scale(0.9);
    }
    100% {
        left: calc(100% + 100px);
        transform: translateY(0px) scale(0.9);
    }
}

.boat svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.4));
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 80px;
    background: linear-gradient(
        to right,
        var(--gold-glow) 0%,
        rgba(255, 107, 53, 0.3) 25%,
        var(--gold-glow) 50%,
        rgba(255, 107, 53, 0.3) 75%,
        var(--gold-glow) 100%
    );
    border-radius: 50% 50% 0 0;
    animation: wave1 10s linear infinite;
}

.wave::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 200%;
    height: 60px;
    background: linear-gradient(
        to right,
        rgba(255, 107, 53, 0.3) 0%,
        rgba(255, 215, 0, 0.2) 25%,
        rgba(255, 107, 53, 0.3) 50%,
        rgba(255, 215, 0, 0.2) 75%,
        rgba(255, 107, 53, 0.3) 100%
    );
    border-radius: 50% 50% 0 0;
    animation: wave2 15s linear infinite;
}

@keyframes wave1 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes wave2 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Decorative Elements
   ========================================================================== */
.baybayin-decoration {
    position: absolute;
    font-size: 120px;
    opacity: 0.1;
    color: var(--gold-primary);
    z-index: -1;
    animation: drift 30s infinite ease-in-out;
    pointer-events: none;
}

@keyframes drift {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(50px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-30px, 20px) rotate(240deg);
    }
}

/* Form Elements
   ========================================================================== */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--gold-primary);
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    color: var(--light-text);
    font-size: 16px;
    font-family: "Georgia", serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.form-input::placeholder {
    color: rgba(240, 230, 210, 0.5);
}

/* Status Indicators
   ========================================================================== */
.status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border: 1px solid;
}

.status-available {
    background: rgba(76, 222, 128, 0.2);
    border-color: var(--success-green);
    color: var(--success-green);
}

.status-soon {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.status-unavailable {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* ==========================================================================
   MOBILE NAVIGATION MEDIA QUERIES
   ========================================================================== */

/* Mobile Navigation Breakpoint */
@media screen and (max-width: 768px) {
    /* Hide desktop navigation links on mobile */
    .nav-links {
        display: none !important;
    }

    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Adjust navigation padding for mobile */
    nav {
        padding: 15px 20px;
    }

    /* Adjust logo size for mobile */
    .logo {
        font-size: 22px;
    }
}

/* Tablet and smaller desktop breakpoint */
@media screen and (max-width: 968px) {
    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Very small mobile screens */
@media screen and (max-width: 480px) {
    nav {
        padding: 10px 15px;
    }

    .logo {
        font-size: 20px;
    }

    /* Make mobile menu full width on very small screens */
    .mobile-menu {
        width: 100% !important;
    }
}
