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

:root {
    --primary-color: #c0392b;
    --primary-dark: #962d22;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --white: #fff;
    --border-color: #ddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Header and Navigation */
header {
    background: var(--secondary-color);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: bold;
    font-size: 1.3rem;
}

nav .logo img {
    height: 40px;
    width: auto;
}

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

nav ul li a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--white);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 0.5rem 0;
    flex-direction: column;
    gap: 0;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li a {
    color: var(--text-color);
    padding: 0.75rem 1.25rem;
    display: block;
}

.dropdown-menu li a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* Main Content */
main {
    min-height: calc(100vh - 70px - 60px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.dev-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Projects Overview */
.projects-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.projects-overview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
}

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

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--text-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card .coming-soon-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card .coming-soon-img span {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
}

.project-card h3 {
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.project-card p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
}

/* Project Detail Pages */
.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.project-section {
    margin-bottom: 4rem;
}

.project-section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.project-content.reverse {
    direction: rtl;
}

.project-content.reverse > * {
    direction: ltr;
}

.project-content.centered {
    grid-template-columns: 1fr;
    justify-items: center;
}

.project-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-image.large img {
    max-width: 600px;
}

.project-description {
    font-size: 1.05rem;
}

.project-description.wide {
    max-width: 800px;
}

.project-description p {
    margin-bottom: 1rem;
}

.project-description p.intro {
    font-size: 1.2rem;
    color: var(--text-light);
}

.project-description h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.25rem;
}

.project-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.project-description li {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 1rem;
    transition: background 0.2s;
}

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

/* Gameplay Flow */
.gameplay-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
}

.flow-step {
    text-align: center;
    padding: 1rem;
}

.flow-step .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.flow-step p {
    margin: 0;
    font-size: 0.95rem;
}

.flow-arrow {
    color: var(--text-light);
    font-size: 1.5rem;
}

/* Coming Soon Notice */
.coming-soon-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.coming-soon-notice h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

/* About Page */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-text h2:not(:first-child) {
    margin-top: 2rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text ul {
    margin-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

.contact-info h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.email-link {
    display: inline-block;
    background: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    word-break: break-all;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }

    nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo {
        max-width: 200px;
    }

    .project-content {
        grid-template-columns: 1fr;
    }

    .project-content.reverse {
        direction: ltr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .gameplay-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }
}
