/* 
   Round Table 34 - Design System 
   Theme: Modern Premium Dark with Gold Accents
*/

:root {
    /* Color Palette */
    --bg-dark: #0f1014;
    --bg-card: rgba(30, 32, 38, 0.7);
    --primary-gold: #c6a87c;
    --primary-gold-hover: #e0c294;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-glass: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #c6a87c 0%, #a68b5b 100%);
    --gradient-dark: linear-gradient(to bottom, #0f1014, #1a1c22);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-spacing: 8rem;

    /* Effects */
    --glass-blur: blur(12px);
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: #000;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(198, 168, 124, 0.2);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

/* Form Elements */
input,
textarea,
select {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.1);
}

label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 600;
}

form button {
    margin-top: 1rem;
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 16, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    filter: drop-shadow(0 0 5px rgba(198, 168, 124, 0.3));
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    position: relative;
}

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

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

.member-link {
    color: var(--primary-gold) !important;
    border: 1px solid var(--primary-gold);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.member-link:hover {
    background: var(--primary-gold);
    color: #000 !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1c22 0%, #0f1014 100%);
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-gold);
    filter: blur(200px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 1.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(198, 168, 124, 0.5));
    animation: float 6s ease-in-out infinite;
    border-radius: 50%;
}

/* History Image Box */
.history-img-box {
    border: 2px solid var(--primary-gold);
    width: 100%;
    height: 300px;
    border-radius: 12px;
    position: relative;
    margin: 20px 0;
    /* Add margin to prevent cutoff */
}

.history-img-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--border-glass);
}

/* Members Grid */
.members-grid {
    display: grid;
    padding-bottom: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.member-card {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 32, 38, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

.member-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card);
    border-color: var(--primary-gold);
}

.member-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-gold);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 0.9rem;
    color: var(--primary-gold);
    line-height: 1.4;
    overflow-wrap: break-word;
    /* Ensure long words break */
    word-wrap: break-word;
    /* Legacy support */
    hyphens: auto;
    /* Add hyphens if needed */
    padding: 0 10px;
    /* Prevent edge touching */
}

.hero h1 span {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

/* Sections */
section {
    padding: var(--section-spacing) 0;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-gold {
    color: var(--primary-gold);
}

/* Features/Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.goal-card {
    transition: var(--transition-fast);
}

.goal-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.icon {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    margin-top: 4rem;
}

.footer-logo {
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-spacing: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Add spacing between Hero image and History text on mobile */
    #history {
        margin-top: 4rem;
    }

    /* Reduce gap above Membership section on mobile */
    #membership {
        margin-top: 0 !important;
        padding-top: 0;
    }

    /* Add spacing above history image box on mobile */
    .history-img-box {
        margin-top: 4rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-glass);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }
}