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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #1d1d1f;
    background-color: #fff;
    line-height: 1.6;
}

/* ========================================
   Navigation
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
    font-weight: 400;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active {
    font-weight: 600;
    opacity: 1;
}

/* ========================================
   Language Selector
   ======================================== */
.lang-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    padding: 5px 12px;
    border: 1px solid #d2d2d7;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    color: #1d1d1f;
}

.lang-btn:hover {
    background: #f5f5f7;
}

.lang-btn.active {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    margin-top: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    color: #1d1d1f;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
    line-height: 1.1;
    width: 476px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    padding: 12px 40px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #1d1d1f;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background-color: #1d1d1f;
    color: #fff;
}

.btn-primary:hover {
    background-color: #424245;
    border-color: #424245;
}

.btn-secondary {
    background-color: transparent;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background-color: #f5f5f7;
}

/* ========================================
   Container & Sections
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 20px;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 50px;
    text-align: center;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: #f5f5f7;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

/* ========================================
   About Image Slider
   ======================================== */
.about-image-slider {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #1d1d1f;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Portfolio Grid
   ======================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.portfolio-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.portfolio-tag {
    display: inline-block;
    background: #f5f5f7;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1d1d1f;
    margin-right: 8px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: #f5f5f7;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1d1d1f;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1d1d1f;
    box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    background: linear-gradient(135deg, #f5f5f7 0%, #fff 100%);
    padding: 100px 0;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.faq-content > p {
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.faq-list {
    text-align: left;
    margin-bottom: 50px;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1d1d1f;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-icon {
    font-size: 1.5rem;
    color: #74b9ff;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 28px 24px;
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-contact {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-contact p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ========================================
   Ad Container
   ======================================== */
.ad-container {
    margin: 30px auto;
    text-align: center;
    max-width: 600px;
}

.ad-container ins {
    display: inline-block !important;
    max-width: 100%;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: #f5f5f7;
    border-top: 1px solid #d2d2d7;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

footer a {
    color: #74b9ff;
    text-decoration: none;
}

/* ========================================
   About Page Specific Styles
   ======================================== */
section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 40px;
    margin-top: 60px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.intro-text h2 {
    margin-bottom: 20px;
}

.intro-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.9;
    margin-bottom: 20px;
}

.intro-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.skill-card {
    background: #f5f5f7;
    padding: 40px;
    border-radius: 20px;
}

.skill-card h3 {
    font-size: 1.3rem;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.skill-card p {
    color: #666;
    font-size: 0.95rem;
}

.timeline {
    margin-top: 60px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-slider {
        aspect-ratio: 4/3;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }

    section h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-form {
        padding: 20px;
    }

    .lang-selector {
        gap: 5px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* ========================================
   Game Detail Page Specific Styles
   ======================================== */
.game-hero {
    margin-top: 60px;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
}

.game-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.game-hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    background: #1d1d1f;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 60px 0;
}

.info-section h2 {
    font-size: 1.8rem;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.info-section p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #f5f5f7;
}

.feature-list li:before {
    content: "✓ ";
    color: #1d1d1f;
    font-weight: bold;
    margin-right: 10px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.screenshot {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .game-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 15px;
        font-size: 0.85rem;
    }

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

    section {
        padding: 60px 20px;
    }

    .portfolio-image {
        height: 200px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    section h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ========================================
   Portfolio Page Specific Styles
   ======================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.portfolio-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
    overflow: hidden;
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.portfolio-tags {
    margin-bottom: 20px;
}

.portfolio-tag {
    display: inline-block;
    background: #f5f5f7;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1d1d1f;
    margin-right: 8px;
    margin-bottom: 8px;
}

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

/* ========================================
   Photos Page Specific Styles
   ======================================== */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: linear-gradient(135deg, #ddd 0%, #eee 100%);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: all 0.3s ease;
}

.photo-item:hover .photo-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.photo-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-title {
    opacity: 1;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 25px;
    border-radius: 20px;
    border: 2px solid #1d1d1f;
    background-color: transparent;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #1d1d1f;
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 90%;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

/* ========================================
   Board Page Specific Styles
   ======================================== */
.section-desc {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    text-align: center;
}

.post-form {
    background: #f5f5f7;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.posts-list {
    margin-top: 60px;
}

.posts-list h2 {
    font-size: 1.5rem;
    color: #1d1d1f;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f5f7;
}

.post-item {
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #1d1d1f;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.post-author {
    font-weight: 600;
    color: #1d1d1f;
}

.post-date {
    font-size: 0.85rem;
    color: #999;
}

.post-content {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1rem;
}

.success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

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