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

:root {
    --primary-blue: #1a73e8;
    --accent-red: #d93025;
    --bg-white: #ffffff;
    --text-black: #202124;
    --text-gray: #5f6368;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

ul {
    list-style: none;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
}

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

.logo {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

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

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

.nav-links a {
    font-weight: 600;
    color: var(--text-gray);
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: radial-gradient(circle at top right, rgba(26, 115, 232, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(217, 48, 37, 0.05), transparent);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: #1557b0;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

/* Tic-Tac-Toe Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.ttt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 2rem;
}

.cell {
    aspect-ratio: 1/1;
    background: #f1f3f4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.cell:hover {
    background: #e8eaed;
}

.cell.x { color: var(--primary-blue); }
.cell.o { color: var(--accent-red); }

/* Footer */
footer {
    padding: 4rem 2rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e8eaed;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Add hamburger menu logic later if needed */
}
