/* Modern CSS Reset and Variables */
:root {
    --primary: #d4af37;
    --secondary: #f4f4f4;
    --accent: #d4af37;
    --text: #ffffff;
    --background: #1a1a1a;
    --timeline: #d4af37;
    --bg-color: #1a1a1a;
    --bg-color-dark: #2c3e50;
    --text-color: #ffffff;
    --text-color-muted: #e0e0e0;
    --accent-color: #d4af37;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

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

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

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        text-align: center;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem;
        display: block;
    }
}

/* Hero Section */
.hero {
    min-height: 120vh;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(135deg, var(--background) 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    gap: 3rem;
    padding-top: 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero .lead {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: auto;
    margin-top: 5rem;
}

.feature:last-child {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
}

.feature {
    display: flex;
    gap: 1.2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    align-items: flex-start;
}

.feature i {
    font-size: 1.8rem;
    color: var(--accent);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-top: 0.2rem;
}

.feature:hover i {
    background: var(--accent);
    color: var(--background);
}

.feature-content {
    flex: 1;
    text-align: left;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text);
    font-weight: 600;
}

.feature p {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.hero-visual {
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.go-board-visual {
    width: 100%;
    height: 100%;
    background: #e6c88c;
    border: clamp(8px, 1.5vw, 15px) solid #8b4513;
    position: relative;
    transform: perspective(1000px) rotateX(30deg) rotateZ(-30deg);
    box-shadow: 20px 20px 50px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.go-board-visual::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 8%;
    right: 8%;
    bottom: 8%;
    background: 
        linear-gradient(90deg, transparent calc(5.26% - 1px), rgba(0, 0, 0, 0.8) 5.26%, transparent calc(5.26% + 1px)) 0 0 / 5.26% 100%,
        linear-gradient(transparent calc(5.26% - 1px), rgba(0, 0, 0, 0.8) 5.26%, transparent calc(5.26% + 1px)) 0 0 / 100% 5.26%;
}

.go-piece {
    position: absolute;
    width: 4.2%;
    height: 4.2%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 1;
}

.go-piece.black {
    background: radial-gradient(circle at 35% 35%, #333 0%, #000 100%);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.go-piece.white {
    background: radial-gradient(circle at 35% 35%, #fff 0%, #e0e0e0 100%);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.go-piece.star-point {
    width: 1.8%;
    height: 1.8%;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: none;
}

/* Timeline Section */
.history {
    padding: 8rem 2rem;
    background: #2c3e50;
}

.history h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--timeline);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 3rem;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--timeline);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.left .timeline-content::after {
    right: -67px;
}

.right .timeline-content::after {
    left: -67px;
}

.time-marker {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--timeline);
    color: var(--background);
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-family: 'Playfair Display', serif;
}

.timeline-content p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-content:hover .timeline-image img {
    transform: scale(1.1);
}

/* GO board grid lines */
.grid-line {
    position: absolute;
    background: #000;
}

.grid-line.horizontal {
    height: 1px;
    width: 100%;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

/* Floating stones animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-stones {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-stones .stone {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.floating-stones .stone.black {
    background: #000;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.floating-stones .stone.white {
    background: #fff;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

/* Resources Section */
.resources {
    padding: 6rem 2rem;
    background: var(--background);
}

.resources h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.resource-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.resource-content h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.resource-content p {
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.resource-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: var(--background);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: auto;
}

.resource-link:hover {
    background: #b38f1d;
}

@media screen and (max-width: 768px) {
    .resources {
        padding: 4rem 1rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Footer */
.footer {
    background: #1a1a1a;
    padding: 4rem 2rem;
    color: var(--text);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-section p {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-bottom p {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero {
        min-height: 110vh;
    }
    
    .hero-features {
        max-width: 800px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 4rem 1.5rem 2rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }

    .hero .lead {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .hero-features {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 1.5rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .feature i {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .feature h3 {
        font-size: 1.2rem;
    }

    .feature p {
        font-size: 0.9rem;
    }

    .hero-visual {
        width: min(300px, 90vw);
        height: min(300px, 90vw);
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content::after {
        left: -45px !important;
        border-width: 10px 10px 10px 0;
        border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent;
    }

    .timeline-date {
        position: absolute;
        left: -60px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--accent);
        padding: 0.5rem;
        border-radius: 4px;
        font-size: 0.9rem;
    }

    .timeline-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 4rem 1rem 2rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-features {
        gap: 1rem;
    }

    .feature {
        padding: 1.2rem;
    }

    .hero-visual {
        width: min(250px, 85vw);
        height: min(250px, 85vw);
    }

    .navbar {
        padding: 1rem;
    }

    .timeline-item {
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline::after {
        left: 21px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-content::after {
        left: -35px !important;
    }

    .timeline-date {
        left: -50px;
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .timeline-image {
        height: 150px;
    }

    .timeline h3 {
        font-size: 1.2rem;
    }

    .timeline p {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

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

.cta-button {
    margin: 1rem 0 3rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: var(--accent);
    color: var(--background);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.cta-button:hover {
    background: transparent;
    color: var(--accent);
}
