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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(15, 76, 58, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f4c3a 0%, #2d8659 100%);
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    opacity: 0.8;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f4c3a;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Overview Section */
.overview {
    background: white;
}

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

.overview-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-top: 4px solid #ffd700;
    transition: transform 0.3s ease;
}

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

.overview-item i {
    font-size: 3rem;
    color: #0f4c3a;
    margin-bottom: 1rem;
}

.overview-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0f4c3a;
}

.overview-item p {
    color: #666;
}

/* Games Section */
.games {
    background: #f8f9fa;
}

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

.games-row {
    margin-top: 60px;
}

.games-row-title {
    font-size: 1.8rem;
    color: #0f4c3a;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.games-row .games-grid {
    margin-top: 30px;
}

/* Mini Games Section */
.mini-games-section {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border-radius: 15px;
}

.mini-games-title {
    font-size: 1.5rem;
    color: #0f4c3a;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.mini-games-horizontal {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mini-game-card {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 280px;
    max-width: 320px;
}

.mini-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mini-game-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.mini-game-info {
    flex: 1;
}

.mini-game-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #0f4c3a;
    font-weight: 600;
}

.mini-game-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

.mini-game-card .rules-icon {
    background: linear-gradient(135deg, #0f4c3a, #2d8659);
    color: #ffd700;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-left: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(15, 76, 58, 0.2);
}

.mini-game-card:hover .rules-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(15, 76, 58, 0.4);
    background: linear-gradient(135deg, #2d8659, #0f4c3a);
}

@media (max-width: 768px) {
    .mini-games-horizontal {
        flex-direction: column;
        align-items: center;
    }

    .mini-game-card {
        min-width: 250px;
        max-width: 100%;
    }
}

.game-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #ffd700;
}

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

.game-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f4c3a;
}

.game-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: linear-gradient(135deg, #0f4c3a, #2d8659);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.game-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.rules-icon {
    background: linear-gradient(135deg, #0f4c3a, #2d8659);
    color: #ffd700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(15, 76, 58, 0.2);
}

.rules-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(15, 76, 58, 0.4);
    background: linear-gradient(135deg, #2d8659, #0f4c3a);
}

/* Development Section */
.development {
    background: white;
}

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

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border-left: 4px solid #ffd700;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.timeline-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f4c3a;
    margin: 0 auto 1.5rem;
}

.timeline-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0f4c3a;
}

.timeline-content p {
    color: #666;
    margin-bottom: 1rem;
}

.timeline-duration {
    background: linear-gradient(135deg, #0f4c3a, #2d8659);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    width: 100%;
}

.details-icon {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #0f4c3a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

.details-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Technical Section */
.technical {
    background: #f8f9fa;
}

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

.tech-category {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #ffd700;
}

.tech-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #0f4c3a;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-category h3 i {
    color: #ffd700;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.tech-category li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #0f4c3a;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

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

.footer-section li {
    padding: 0.3rem 0;
    opacity: 0.8;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #0f4c3a, #2d8659);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #ffd700;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffd700;
}

.modal-body {
    padding: 2rem;
}

.phase-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #0f4c3a;
    border-bottom-color: #ffd700;
}

.tab-btn:hover {
    color: #0f4c3a;
    background: rgba(255, 215, 0, 0.1);
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.task-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #ffd700;
}

.task-category h4 {
    color: #0f4c3a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    border-bottom: 1px solid #e9ecef;
}

.task-list li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-size: 0.8rem;
}

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

.task-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    padding-right: 1rem;
    border-radius: 5px;
    margin: 0.2rem 0;
}

.task-item.clickable:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
    border-left: 3px solid #ffd700;
    padding-left: 1.2rem;
}

.task-info-icon {
    color: #0f4c3a;
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.task-item.clickable:hover .task-info-icon {
    opacity: 1;
    color: #ffd700;
    transform: scale(1.2);
}

/* Game Rules Styles */
.game-rules-content {
    max-height: 60vh;
    overflow-y: auto;
}

.rules-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0f4c3a;
}

.rules-section h3 {
    color: #0f4c3a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rules-section h3 i {
    color: #ffd700;
}

.rules-section ul {
    list-style: none;
    padding: 0;
}

.rules-section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    border-bottom: 1px solid #e9ecef;
}

.rules-section ul li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-size: 0.8rem;
}

.rules-section ul li:last-child {
    border-bottom: none;
}

.card-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.card-type-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.card-type-item:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.card-type-item h4 {
    color: #0f4c3a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card-type-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 76, 58, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .overview-grid,
    .games-grid,
    .timeline,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .phase-tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid #eee;
        border-right: none;
    }

    .task-category {
        padding: 1rem;
    }

    .task-category h4 {
        font-size: 1.1rem;
    }
}
