@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Emerald Coast inspired palette */
    --primary-color: #0369a1; 
    --secondary-color: #0ea5e9;
    --emerald-water: #10b981;
    --background-color: #f8fafc;
    --surface-color: rgba(255, 255, 255, 0.85); /* Transparent for glass effect */
    --text-main: #1e293b;
    --text-light: #64748b;
    --glow-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background-color);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px; /* Subtle dot matrix background */
    color: var(--text-main);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Glassmorphism Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--emerald-water));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

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

/* Animated Underline on Nav */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: var(--emerald-water);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

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

/* Animated Gradient Hero Section */
.hero {
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--emerald-water), #0284c7);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Main Content */
main {
    flex: 1;
}

.content-section {
    padding: 4rem 0;
}

.content-section h1, .content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

/* Floating Cards with Ambient Glow */
.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card, .card-section {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glow-shadow);
    border-color: rgba(14, 165, 233, 0.2);
}

.card h3, .card-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Enhanced Lists */
.member-list {
    list-style: none;
    margin-top: 1.5rem;
}

.member-list li {
    padding: 1rem 0;
    border-bottom: 1px dashed #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-list li:last-child {
    border-bottom: none;
}

.member-list a {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.member-list a:hover {
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.rules-list {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.rules-list li {
    margin-bottom: 1.2rem;
    padding-left: 0.5rem;
}

.rules-list li strong {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: #cbd5e1;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        gap: 1rem;
    }
}