/* ==========================================================================
   SECTION LAYOUTS & RESPONSIVE DESIGN - MOBILE GAME DEVELOPER PORTFOLIO
   ========================================================================== */

/* --------------------------------------------------------------------------
   Navbar & Navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-bright);
    text-decoration: none;
}

.nav-logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    /* background: var(--gradient-primary); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

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

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-bright);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 10rem 0 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-code);
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2.75rem, 4.5vw, 4.25rem);
    margin-bottom: 1.25rem;
}

.hero-summary {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tech-stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.hero-avatar-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-frame {
    width: 380px;
    height: 440px;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.avatar-frame:hover .avatar-img {
    transform: scale(1.04);
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: var(--gradient-glow);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.hero-stats-grid {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   About Me Section
   -------------------------------------------------------------------------- */
.about-section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-text-card {
    padding: 2.5rem;
}

.about-bio-p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.pillar-card:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.pillar-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Skills Section
   -------------------------------------------------------------------------- */
.skills-section {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
}

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

.skill-category-card {
    padding: 2rem;
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.skill-cat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Games Portfolio Showcase
   -------------------------------------------------------------------------- */
.games-section {
    padding: 2rem 0;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--text-bright);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.game-card-large {
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
}

.game-banner-box {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.game-card-large:hover .game-cover-img {
    transform: scale(1.03);
}

.game-genre-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-code);
    text-transform: uppercase;
}

.game-header-info {
    margin-bottom: 1rem;
}

.game-title {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
}

.game-meta-sub {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.game-store-badges {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.game-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.gallery-thumb {
    /* aspect-ratio: 16 / 9; */
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform var(--transition-fast);
}

.gallery-thumb:hover {
    transform: scale(1.05);
    border-color: var(--accent-cyan);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlights-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.highlight-chip {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #C084FC;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Timeline Section
   -------------------------------------------------------------------------- */
.timeline-section {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.timeline-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-content {
    padding: 1.75rem;
}

.timeline-period {
    font-family: var(--font-code);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-role {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

/* --------------------------------------------------------------------------
   Awards Section
   -------------------------------------------------------------------------- */
.awards-section {
    padding: 6rem 0;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.award-card {
    padding: 2rem;
    text-align: center;
}

.award-icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem auto;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* --------------------------------------------------------------------------
   Contact Section & Footer
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 6rem 0 4rem 0;
}

.contact-card-box {
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.contact-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.qr-svg {
    width: 70px;
    height: 70px;
    background: #FFF;
    padding: 5px;
    border-radius: 6px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-stats-grid {
        grid-column: span 1;
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .game-card-large,
    .contact-card-box {
        grid-template-columns: 1fr;
    }

    .skills-categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(7, 9, 14, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }

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

    .mobile-toggle {
        display: block;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .avatar-frame {
        width: 300px;
        height: 350px;
    }
}

/* Light Mode Section Overrides */
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: #FFFFFF;
    border-color: rgba(15, 23, 42, 0.18);
    color: #0F172A;
}

[data-theme="light"] .qr-code-box {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .pillar-card {
    background: rgba(241, 245, 249, 0.8);
}

[data-theme="light"] .filter-btn {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
}

[data-theme="light"] .badge-tag {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--text-main);
}