﻿/* =================================
   GLOBAL STYLES
   ================================= */

html {
    scroll-behavior: smooth;
}

/* =================================
   NAVIGATION & MENU STYLES
   ================================= */

/* Active menu item styling */
.active-menu-item .rz-panel-menu-item-link {
    color: var(--rz-primary) !important;
}

.active-menu-item .rz-panel-menu-item-icon {
    color: var(--rz-primary) !important;
}

/* =================================
   SCROLL TO TOP BUTTON
   ================================= */

.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    .scroll-to-top-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

    .scroll-to-top-btn.hidden {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

.scroll-to-top-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .scroll-to-top-floating:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

/* =================================
   FORM ENHANCEMENTS
   ================================= */

.rz-textbox, .rz-password {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

    .rz-textbox:hover, .rz-password:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }

    .rz-textbox:focus, .rz-password:focus {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: var(--rz-primary);
        box-shadow: 0 0 0 0.2rem rgba(var(--rz-primary-rgb), 0.25);
    }

.focused-field {
    background: linear-gradient(270deg, rgba(var(--rz-primary-rgb), 0.2), rgba(var(--rz-secondary-rgb), 0.2));
    background-size: 200% 200%;
    animation: formFieldFocus 3s ease infinite;
}

@keyframes formFieldFocus {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =================================
   BUTTON IMPROVEMENTS
   ================================= */

.rz-button {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
}

    .rz-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .rz-button:active {
        transform: translateY(0);
    }

.rz-button-primary {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    border: none !important;
}

.rz-button-large {
    padding: 1rem 2rem;
    border-radius: 50px;
}

/* =================================
   LABEL STYLING
   ================================= */

.rz-label {
    font-weight: 500;
    color: var(--rz-text-title-color);
    margin-bottom: 0.5rem;
}

/* =================================
   CARD STYLING
   ================================= */

.rz-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .rz-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    }

/* =================================
   VALIDATION STYLING
   ================================= */

.rz-message-popup {
    background-color: rgba(220, 53, 69, 0.95);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* =================================
   CHECKBOX STYLING
   ================================= */

/* Green checkbox styling */
.checkbox-green .rz-chkbox-box,
.rz-chkbox.checkbox-green .rz-chkbox-box {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

    .checkbox-green .rz-chkbox-box.rz-state-active,
    .rz-chkbox.checkbox-green .rz-chkbox-box.rz-state-active {
        background-color: #28a745 !important;
        border-color: #28a745 !important;
    }

        .checkbox-green .rz-chkbox-box.rz-state-active::before,
        .checkbox-green .rz-chkbox-box .rzi-check {
            color: white !important;
        }

/* Blue checkbox styling */
.checkbox-blue .rz-chkbox-box,
.rz-chkbox.checkbox-blue .rz-chkbox-box {
    color: #007bff !important;
    border-color: #007bff !important;
}

    .checkbox-blue .rz-chkbox-box.rz-state-active,
    .rz-chkbox.checkbox-blue .rz-chkbox-box.rz-state-active {
        background-color: #007bff !important;
        border-color: #007bff !important;
    }

        .checkbox-blue .rz-chkbox-box.rz-state-active::before,
        .checkbox-blue .rz-chkbox-box .rzi-times {
            color: white !important;
        }

/* Red checkbox styling */
.checkbox-red .rz-chkbox-box,
.rz-chkbox.checkbox-red .rz-chkbox-box {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

    .checkbox-red .rz-chkbox-box.rz-state-active,
    .rz-chkbox.checkbox-red .rz-chkbox-box.rz-state-active {
        background-color: #dc3545 !important;
        border-color: #dc3545 !important;
    }

        .checkbox-red .rz-chkbox-box.rz-state-active::before,
        .checkbox-red .rz-chkbox-box .rzi-check,
        .checkbox-red .rz-chkbox-box .rzi-times {
            color: white !important;
        }

/* =================================
   BADGE STYLING
   ================================= */

.rz-badge {
    border-radius: 20px !important;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
}

/* =================================
   INDEX PAGE STYLES
   ================================= */

.hero-section {
    padding: 4rem 1rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Hero Row - Custom grid for desktop */
@media (min-width: 993px) {
    .hero-section .rz-row {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 2rem;
        align-items: center;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .hero-section .rz-column {
        width: 100% !important;
        flex: none !important;
    }
}

/* Hero Content - Left side (2/3) */
.hero-content {
    text-align: left;
    max-width: 100%;
}

.hero-title {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--rz-primary);
}

.hero-subtitle {
    color: var(--rz-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
    background: var(--rz-base-surface);
    border-radius: 16px;
    border: 1px solid var(--rz-base-300);
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--rz-shadow-4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    color: var(--rz-primary) !important;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--rz-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--rz-base-300);
}

/* Hero Visual - Right side (1/3) */
.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Hero Cards Container - Right side positioning */
.hero-card-container {
    position: relative;
    height: 340px;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.hero-card {
    position: absolute;
    background: var(--rz-base-surface);
    border: 1px solid var(--rz-base-300);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--rz-shadow-4);
    backdrop-filter: blur(10px);
}

    .hero-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: var(--rz-shadow-8);
    }

.primary-card {
    width: 260px;
    height: 160px;
    top: 0;
    left: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.secondary-card {
    width: 260px;
    height: 160px;
    top: 180px;
    left: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.1), rgba(102, 126, 234, 0.1));
    border: 1px solid rgba(118, 75, 162, 0.3);
}

.hero-icon {
    font-size: 2.5rem;
    color: var(--rz-secondary);
    margin-bottom: 1rem;
    display: block;
}

    .hero-icon.small {
        font-size: 2rem;
    }

.hero-card-title {
    color: var(--rz-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-card-description {
    font-size: 0.9rem;
    line-height: 1.4;
}

    .hero-card-description.small {
        font-size: 0.8rem;
    }

/* Stats Banner */
.stats-banner {
    padding: 2rem 1rem;
}

.quick-stat {
    text-align: center;
    padding: 1rem;
    background: var(--rz-base-surface);
    border-radius: 12px;
    border: 1px solid var(--rz-base-300);
    box-shadow: var(--rz-shadow-2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.quick-stat-number {
    color: var(--rz-primary) !important;
    margin-bottom: 0.5rem;
}

.quick-stat-label {
    color: var(--rz-secondary) !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Work Section */
.work-section {
    padding: 4rem 1rem;
    color: var(--rz-text-primary);
}

    .work-section .section-title {
        color: var(--rz-primary) !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .work-section .section-subtitle {
        color: var(--rz-secondary) !important;
        font-size: 1.1rem;
        margin-bottom: 3rem;
        text-align: center;
    }

.feature-card {
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--rz-base-300);
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
    box-shadow: var(--rz-shadow-4);
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--rz-shadow-8) !important;
    }

    /* Featured Card - Projects */
    .feature-card.featured {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
        border: 5px solid var(--rz-warning);
    }

    /* Game Development Card */
    .feature-card.game {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    }

    /* Character Creator Card */
    .feature-card.charactercreator {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    }

.feature-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.projects-icon {
    background: rgba(255, 255, 255, 0.3);
}

.games-icon {
    background: rgba(255, 255, 255, 0.3);
}

.character-icon {
    background: rgba(255, 255, 255, 0.3);
}

.feature-title {
    margin-bottom: 1rem;
    color: var(--rz-secondary) !important;
}

.feature-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

.feature-highlights {
    margin-bottom: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

    .highlight-item span {
        color: rgba(255, 255, 255, 0.9) !important;
    }

.highlight-icon {
    color: #10b981;
    font-size: 1rem;
}

.feature-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-cta {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
}

/* Skills Section */
.skills-section {
    padding: 4rem 1rem;
}

    .skills-section .section-title {
        color: var(--rz-primary) !important;
        text-align: center;
    }

    .skills-section .section-subtitle {
        color: var(--rz-secondary) !important;
        text-align: center;
    }

.skill-category {
    background: var(--rz-base-surface);
    border: 1px solid var(--rz-base-300);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--rz-shadow-4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

    .skill-category:hover {
        transform: translateY(-5px);
        box-shadow: var(--rz-shadow-8);
    }

.skill-category-icon {
    font-size: 2.5rem;
    color: var(--rz-secondary);
    margin-bottom: 1rem;
}

.skill-category-title {
    color: var(--rz-primary) !important;
    margin-bottom: 1.5rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-level {
    width: 60px;
    height: 8px;
    background: var(--rz-base-700);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

    .skill-level::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        border-radius: 4px;
        background: var(--rz-secondary);
    }

    .skill-level.expert::after {
        width: 95%;
    }

    .skill-level.advanced::after {
        width: 80%;
    }

    .skill-level.intermediate::after {
        width: 60%;
    }

    .skill-level.learning::after {
        width: 40%;
    }

/* About Section */
.about-section {
    padding: 4rem 1rem;
}

    .about-section .section-title {
        color: var(--rz-primary) !important;
        margin-bottom: 1rem;
    }

.about-text {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

    .about-text.lead {
        font-size: 1.2rem;
        color: var(--rz-text-primary) !important;
        font-weight: 500;
    }

.achievement-cards {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--rz-base-surface);
    border: 1px solid var(--rz-base-300);
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1;
    min-width: 250px;
    box-shadow: var(--rz-shadow-4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.achievement-icon {
    font-size: 2rem;
    color: var(--rz-secondary);
    flex-shrink: 0;
}

.achievement-title {
    color: var(--rz-primary) !important;
    margin-bottom: 0.5rem;
}

.achievement-description {
    font-size: 0.9rem;
}

.about-visual-stack {
    margin-top: 2rem;
}

.about-visual {
    background: var(--rz-base-surface);
    border: 1px solid var(--rz-base-300);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--rz-shadow-4);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.about-icon {
    font-size: 4rem;
    color: var(--rz-secondary);
    margin-bottom: 1rem;
}

.about-visual-title {
    color: var(--rz-primary) !important;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-visual-text {
    font-style: italic;
}

/* CTA Section */
.cta-section {
    padding: 4rem 1rem;
    color: var(--rz-text-primary);
}

.cta-title {
    color: var(--rz-primary) !important;
    margin-bottom: 1.5rem;
}

.cta-description {
    color: var(--rz-text-secondary) !important;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =================================
   PROJECTS PAGE STYLES
   ================================= */

.page-title {
    color: var(--rz-primary);
    font-weight: 700;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--rz-base-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--rz-base-300);
}

    .project-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--rz-shadow-8) !important;
    }

.project-title {
    color: var(--rz-primary);
    line-height: 1.3;
    word-break: break-word;
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
    border: none;
    outline: none;
}

.project-carousel {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

    .project-carousel .rz-carousel-item {
        height: 300px;
        border-radius: 0;
        overflow: hidden;
    }

        .project-carousel .rz-carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 0;
            border: none;
            outline: none;
        }

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rz-base-200);
    border-radius: 12px;
}

.project-description {
    color: var(--rz-text-secondary);
    line-height: 1.6;
}

/* =================================
   GAMES PAGE STYLES
   ================================= */

.game-card {
    background: var(--rz-base-surface);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--rz-base-300);
}

    .game-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--rz-shadow-8) !important;
    }

.game-title {
    color: var(--rz-primary);
    line-height: 1.3;
    word-break: break-word;
}

.game-release-date {
    color: var(--rz-text-secondary);
    font-style: italic;
    margin-top: -0.5rem;
}

.game-image-container {
    position: center;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

.game-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.game-carousel {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

    .game-carousel .rz-carousel-item {
        height: 300px;
        border-radius: 0;
        overflow: hidden;
    }

        .game-carousel .rz-carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 0;
            border: none;
            outline: none;
        }

.game-description {
    color: var(--rz-text-secondary);
    line-height: 1.6;
}

/* =================================
   RESPONSIVE HELPERS
   ================================= */

.rz-container {
    padding-left: clamp(1rem, 5vw, 2rem);
    padding-right: clamp(1rem, 5vw, 2rem);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .project-card,
    .game-card,
    .feature-card,
    .hero-card,
    .about-visual {
        transition: none !important;
        animation: none !important;
    }

    .animate-in {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.project-card:focus-within,
.game-card:focus-within {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

.feature-card:focus-visible {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

/* Enhanced button styles */
.feature-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .feature-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }

    .feature-button:hover::before {
        left: 100%;
    }

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .project-card,
    .game-card {
        border: 2px solid;
    }

    .hero-section {
        background: #000 !important;
        color: #fff !important;
    }
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

/* Large Desktop - Bigger cards */
@media (min-width: 1200px) {
    .hero-card-container {
        max-width: 320px;
        height: 380px;
    }

    .primary-card {
        width: 300px;
        height: 180px;
    }

    .secondary-card {
        width: 300px;
        height: 180px;
        top: 200px;
    }
}

/* Tablet and Mobile - Stack vertically */
@media (max-width: 992px) {
    .hero-section .rz-row {
        display: flex !important;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-visual {
        justify-content: center;
        order: 2;
    }

    .hero-card-container {
        height: auto;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .primary-card {
        position: relative;
        width: 100%;
        max-width: 400px;
        right: auto;
        top: auto;
        margin: 0 auto 1.5rem auto;
        z-index: 1;
    }

    .secondary-card {
        position: relative;
        width: 100%;
        max-width: 350px;
        left: auto;
        bottom: auto;
        margin: 0 auto;
        z-index: 1;
    }
}

/* Mobile optimisations */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-card {
        padding: 1.25rem;
    }

    .primary-card,
    .secondary-card {
        max-width: 100%;
    }

    .hero-icon {
        font-size: 2rem;
    }

        .hero-icon.small {
            font-size: 1.75rem;
        }

    .hero-cta {
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .hero-card-title {
        font-size: 1.1rem;
    }

    .secondary-card {
        z-index: 1;
        background: linear-gradient(135deg, rgba(118, 75, 162, 0.1), rgba(102, 126, 234, 0.1));
        border: 1px solid rgba(118, 75, 162, 0.3);
        top: 10px;
    }

    .hero-card-description {
        font-size: 0.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .stat-group {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }
}