/* ===========================
   PokéXProject Landing Page
   Modern, Clean Design
   =========================== */

:root {
    --primary-red: #E60012;
    --primary-blue: #0075BE;
    --primary-yellow: #FFDE00;
    --dark-bg: #1a1a2e;
    --darker-bg: #16161d;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../images/projects/Project1.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    pointer-events: none;
}

/* Logo - Top Right */
.logo-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-poke {
    color: var(--primary-red);
    display: inline-block;
    animation: jugglePoke 3s ease-in-out infinite;
}

.logo-x {
    color: var(--primary-blue);
    font-size: 1.7rem;
    font-weight: 900;
}

.logo-project {
    color: var(--text-light);
    display: inline-block;
    animation: juggleProject 3s ease-in-out infinite;
}

@keyframes jugglePoke {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-4px); }
    75% { transform: translateY(2px); }
}

@keyframes juggleProject {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(2px); }
    75% { transform: translateY(-4px); }
}

/* Main Container */
.main-container {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 0;
    position: relative;
    z-index: 1;
    flex: 1;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-main {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.title-brand {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
}

.title-brand::before {
    content: 'Poké';
    color: var(--primary-red);
    margin-right: 0.1rem;
}

.title-brand {
    color: var(--primary-blue);
    font-size: 4.5rem;
}

.title-brand::after {
    content: 'Project';
    color: rgba(255, 255, 255, 0.95);
    font-size: 4rem;
    margin-left: 0.1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.85;
    margin-top: 1rem;
    font-weight: 600;
}

/* Projects Grid */
.projects-section {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/* Hide coming soon cards - toggle by uncommenting */
 .project-card[data-status="coming-soon"] {
    display: none;
} 

/* Project Card */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 380px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue), var(--primary-yellow));
    opacity: 0;
    transition: var(--transition);
}

/* Background logo decoration */
.project-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    transition: var(--transition);
    z-index: 0;
}
/* 
.project-card[data-project-id="lza-dex-tracker"]::after {
    background-image: url('../images/projects/Project1Logo.png');
}

.project-card[data-project-id="level80-xp-celebration"]::after {
    background-image: url('../images/projects/Project2Logo.png');
}

.project-card[data-project-id="pla-dex-tracker"]::after {
    background-image: url('../images/projects/arceuslogo.png');
}

.project-card[data-project-id="sv-dex-tracker"]::after {
    background-image: url('../images/projects/scarletvioletlogo.webp');
}

.project-card[data-project-id="bdsp-dex-tracker"]::after {
    background-image: url('../images/projects/bdsplogo.png');
}

.project-card[data-project-id="swsh-dex-tracker"]::after {
    background-image: url('../images/projects/swshlogo.png');
} */

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 0.12;
    transform: scale(1.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Coming soon overlay */
.project-card[data-status="coming-soon"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 2;
    pointer-events: none;
}

.project-card[data-status="coming-soon"]:hover {
    transform: none;
    cursor: default;
}

.project-image-container {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    order: 1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.project-game-badge {
   position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.1rem;
    border-radius: 40px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-game-badge img {
   width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.project-card[data-status="coming-soon"] .project-image {
    filter: grayscale(30%);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    order: 2;
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.project-header {
    margin-bottom: 0.75rem;
}

.project-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.coming-soon-badge {
    position: absolute;
    top: 12px;
    right: -8px;
    background: linear-gradient(135deg, var(--primary-red), #b30009);
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.6);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
    transform: translateX(0);
    transition: var(--transition);
}

.coming-soon-badge::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent #6a0005 transparent transparent;
}

.coming-soon-badge::after {
    content: '⏰';
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    animation: tickTock 2s ease-in-out infinite;
}

@keyframes tickTock {
    0%, 100% { transform: translateY(-50%) rotate(-10deg); }
    50% { transform: translateY(-50%) rotate(10deg); }
}

.coming-soon-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    position: relative;
    z-index: 3;
}

.project-game {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
    width: 100%;
}

.project-tag {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.project-card:hover .project-tag {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-link-btn {
    background: linear-gradient(135deg, var(--primary-red), #b30009);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 3;
}

.project-link-btn::after {
    content: '→';
    font-size: 1.1rem;
    transition: var(--transition);
}

.project-card:hover .project-link-btn {
    transform: translateX(2px);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.5);
    background: linear-gradient(135deg, #b30009, #8a0007);
}

.project-card:hover .project-link-btn::after {
    transform: translateX(4px);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Background Decoration - Now handled by body::before */
.bg-decoration {
    display: none;
}

/* Footer */
.landing-footer {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-rights {
    font-size: 0.75rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-made-text,
.footer-by {
    color: rgba(255, 255, 255, 0.7);
}

.footer-heart {
    width: 1rem;
    height: 1rem;
    color: var(--primary-red);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

.footer-author {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.footer-author:hover {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(230, 0, 18, 0.5);
}

.footer-disclaimer {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        justify-content: center;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        top: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-x {
        font-size: 1.4rem;
    }

    .title-main {
        font-size: 1rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .project-card {
        min-height: auto;
    }

    .project-tags {
        justify-content: center;
    }

    .main-container {
        padding: 1rem 1rem 0;
    }
}

@media (max-width: 480px) {
    .title-brand {
        font-size: 2rem;
    }
    .logo-container{
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        border-radius: 16px;
        min-height: 150px;
        overflow: hidden;
        flex-direction: row;
    }

    /* Image on left - 30% */
    .project-image-container {
        width: 30%;
        height: auto;
        min-height: 150px;
        flex-shrink: 0;
    }

    .project-image {
        width: 100%;
        height: 100%;
    }

    .project-game-badge {
        top: 8px;
        left: 8px;
        padding: 0.4rem;
        border-radius: 8px;
    }

    .project-game-badge img {
        width: 35px;
        height: 35px;
    }

    /* Content on right - 70% */
    .project-content {
        width: 60%;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.85);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Hide game subtitle on mobile */
    .project-game {
        display: none;
    }

    .project-header {
        margin-bottom: 0.5rem;
    }

    .project-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }

    /* Compact description - 2 lines max */
    .project-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.7rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Compact tags */
    .project-tags {
        justify-content: flex-start;
        gap: 0.35rem;
        margin-bottom: 0.7rem;
        flex-wrap: wrap;
    }

    .project-tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
        border-radius: 20px;
    }

    /* Hide coming soon text on mobile */
    .coming-soon-text {
        display: none;
    }

    /* Compact button */
    .project-link-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 8px;
        width: fit-content;
    }

    .project-link-btn::after {
        font-size: 1rem;
    }

    /* Smaller footer */
    .project-footer {
        gap: 0.7rem;
        padding-top: 0;
        border-top: none;
        margin-top: auto;
    }

    /* Compact coming soon badge */
    .coming-soon-badge {
        top: 8px;
        right: 8px;
        padding: 0.35rem 0.9rem;
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .coming-soon-badge::after {
        font-size: 0.9rem;
        left: -16px;
    }

    /* Reduce background logo size */
    .project-card::after {
        width: 100px;
        height: 100px;
        bottom: 10px;
        right: 10px;
        opacity: 0.05;
    }

    /* Adjust overlay for compact view */
    .project-card[data-status="coming-soon"]::before {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .logo-container {
        background: rgba(26, 26, 46, 0.95);
    }

    .logo-project {
        color: var(--text-light);
    }
}
