:root {
    --primary-red: #D32F2F;
    --accent-red: #FFEBEE;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    background-color: var(--bg-white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-red);
    letter-spacing: 1px;
}

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

.nav-links a {
    font-weight: 400;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Main Content */
.content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--accent-red) 100%);
}

.login-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.5s ease-out;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.login-container button:hover {
    background-color: #b71c1c;
}

.error {
    color: var(--primary-red);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Home Page */
.home-container {
    text-align: center;
    padding: 4rem 0;
}

.welcome-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-red);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* Profile Page */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-pic {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-red);
    box-shadow: var(--shadow);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-pic i {
    font-size: 5rem;
    color: var(--primary-red);
    line-height: 142px;
}

.bio-quote {
    font-style: italic;
    color: var(--text-light);
}

.profile-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorites ul {
    list-style: none;
}

.favorites li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--accent-red);
    color: var(--primary-red);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
    background: var(--bg-light);
}

.social-btn:hover {
    background: var(--accent-red);
    color: var(--primary-red);
}

/* Art Gallery */
.art-container {
    text-align: center;
}

.page-header {
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 4rem;
    color: var(--text-light);
    background: var(--bg-white);
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Nature Page */
.nature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.nature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nature-card:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.quote-section {
    text-align: center;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: 12px;
    border-left: 5px solid var(--primary-red);
}

.quote-section blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-dark);
}

/* Quotes Section */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.quote-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-red);
    font-style: italic;
    transition: var(--transition);
}

.quote-card:hover {
    transform: translateY(-3px);
    background: var(--accent-red);
}

/* Game Page */
.game-container {
    text-align: center;
    padding: 2rem 0;
}

.game-wrapper {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

canvas#gameCanvas {
    display: block;
    width: 100%;
    height: 500px;
    background: linear-gradient(to bottom, #1a237e, #4a148c);
    /* Deep space/dream bg */
    cursor: none;
    /* Hide default cursor for custom game cursor */
}

.game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
}

.game-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ff4081;
}

.game-overlay p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 80%;
}

/* Secret Page */
.secret-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.message-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(211, 47, 47, 0.15);
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-red), #ff4081);
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin: 2rem 0;
    font-style: italic;
}

.countdown-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid #eee;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unit-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: normal;
    text-transform: uppercase;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-white);
    margin-top: auto;
    color: var(--text-light);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

@keyframes zoomIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

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

    .hamburger {
        display: block;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    canvas#gameCanvas {
        height: 400px;
        /* Smaller canvas on mobile */
    }

    .countdown-timer {
        gap: 1rem;
        font-size: 1.2rem;
    }
}