/* ===================================
   NORMAN NOONE PORTFOLIO - MAIN STYLES
   =================================== */

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

body {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    background: #1a1a1a;
    color: #e8e8e8;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(45, 85, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Top Accent Border */
.blood-drip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(74, 144, 226, 0.3) 25%, rgba(74, 144, 226, 0.5) 50%, rgba(74, 144, 226, 0.3) 75%, transparent 100%);
    z-index: 100;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.8) 0%, transparent 50%, rgba(74, 144, 226, 0.05) 100%);
    border-bottom: 3px solid rgba(74, 144, 226, 0.4);
    margin-bottom: 60px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(74, 144, 226, 0.4), 0 0 40px rgba(74, 144, 226, 0.2), 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    to {
        text-shadow: 0 0 30px rgba(74, 144, 226, 0.8), 0 0 60px rgba(74, 144, 226, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

/*
h1 {
    font-size: 4.5em;
    color: #4a90e2;
    text-shadow: 0 0 30px rgba(74, 144, 226, 0.6), 0 0 60px rgba(74, 144, 226, 0.3), 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    letter-spacing: 8px;
    font-weight: bold;
    animation: glow 3s ease-in-out infinite alternate;
}
*/

h1 {
    font-size: 4.5em;
    color: #e8e8e8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    letter-spacing: 8px;
    font-weight: bold;
    animation: glow 3s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.8em;
    color: #7fb3e8;
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.2em;
    color: #5a8ec9;
    margin-top: 25px;
    letter-spacing: 2px;
}

/* Section Titles */
h2 {
    font-size: 3em;
    color: #4a90e2;
    text-align: center;
    margin: 80px 0 50px;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    letter-spacing: 4px;
}

/* Fade sections for smooth transitions */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-section {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.7) 0%, rgba(20, 25, 35, 0.7) 100%);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 10px;
    text-align: center;
}

.about-section p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #c5d5e8;
    margin-bottom: 20px;
}

/* Professional Experience Section */
.experience-section {
    max-width: 1200px;
    margin: 0 auto 80px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.experience-category {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.8) 0%, rgba(20, 25, 35, 0.8) 100%);
    border: 2px solid rgba(74, 144, 226, 0.5);
    border-radius: 10px;
    padding: 35px;
}

.experience-category h3 {
    font-size: 2em;
    color: #4a90e2;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
    border-bottom: 2px solid rgba(74, 144, 226, 0.4);
    padding-bottom: 15px;
}

.job-card {
    background: rgba(20, 25, 35, 0.6);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-left: 3px solid #4a90e2;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-left-color: #7fb3e8;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
    transform: translateX(5px);
}

.job-header {
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.3em;
    color: #4a90e2;
    font-weight: bold;
    margin-bottom: 5px;
}

.company-name {
    font-size: 1.1em;
    color: #7fb3e8;
    margin-bottom: 8px;
}

.job-period {
    font-size: 0.9em;
    color: #99b8d9;
    font-style: italic;
}

.job-status {
    display: inline-block;
    background: rgba(74, 144, 226, 0.3);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.4);
    margin-top: 10px;
}

.job-status.active {
    background: rgba(34, 139, 34, 0.2);
    border-color: rgba(34, 139, 34, 0.5);
    color: #90ee90;
}

.job-link {
    display: inline-block;
    margin-top: 12px;
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.job-link:hover {
    color: #7fb3e8;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.project-card {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9) 0%, rgba(20, 25, 35, 0.9) 100%);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: #4a90e2;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.4), inset 0 0 20px rgba(74, 144, 226, 0.1);
    transform: translateY(-8px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.project-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.5));
}

.project-card h3 {
    font-size: 1.6em;
    color: #4a90e2;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.project-type {
    display: inline-block;
    background: rgba(74, 144, 226, 0.2);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    color: #7fb3e8;
    border: 1px solid rgba(74, 144, 226, 0.4);
    margin-bottom: 15px;
}

.project-card p {
    color: #b8c9dc;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Project Stats */
.project-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: rgba(74, 144, 226, 0.15);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 5px;
    flex: 1;
    min-width: 80px;
}

.stat-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #4a90e2;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.stat-label {
    font-size: 0.75em;
    color: #99b8d9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid #4a90e2;
    border-radius: 5px;
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.project-link:hover {
    background: rgba(74, 144, 226, 0.3);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
    transform: translateX(5px);
}

/* Pixel Art Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.art-card {
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9) 0%, rgba(20, 25, 35, 0.9) 100%);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    position: relative;
    background-image: var(--full-image-url);
    background-size: 0;
}

.art-card:hover {
    border-color: #4a90e2;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.4);
    transform: scale(1.02);
}

.art-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
}

.art-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
}

.art-image[src$=".gif"] {
    image-rendering: auto;
}

.art-card:hover .art-image {
    border-color: #4a90e2;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.art-info {
    padding: 25px;
}

.art-info h4 {
    color: #4a90e2;
    font-size: 1.3em;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.art-description {
    color: #c5d5e8;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.art-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(74, 144, 226, 0.3);
}

.art-tag {
    background: rgba(74, 144, 226, 0.2);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    color: #99b8d9;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.art-link {
    color: #4a90e2;
    font-size: 0.9em;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: inline-block;
}

.art-link:hover {
    color: #7fb3e8;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* Tippy Art Tooltip Theme */
.tippy-box[data-theme~="art-tooltip"] {
    background: rgba(10, 15, 25, 0.95);
    border: 3px solid #4a90e2;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.6), 0 0 80px rgba(0, 0, 0, 0.8);
    max-width: none;
    padding: 0;
}

.tippy-box[data-theme~="art-tooltip"] .tippy-content {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tippy-box[data-theme~="art-tooltip"] .tippy-arrow {
    color: #4a90e2;
}

.art-tooltip-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    image-rendering: pixelated;
}

/* Skills Section */
.skills-section {
    max-width: 1000px;
    margin: 0 auto 80px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-tag {
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid rgba(74, 144, 226, 0.3);
    padding: 15px 20px;
    border-radius: 5px;
    text-align: center;
    color: #c5d5e8;
    font-size: 1.1em;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.skill-tag:hover {
    background: rgba(74, 144, 226, 0.3);
    border-color: #4a90e2;
    color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

/* Contact Section */
.contact-section {
    max-width: 700px;
    margin: 0 auto 80px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(30, 35, 45, 0.9) 0%, rgba(20, 25, 35, 0.9) 100%);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 10px;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(74, 144, 226, 0.2);
    border: 2px solid #4a90e2;
    border-radius: 8px;
    color: #4a90e2;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(74, 144, 226, 0.3);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 25, 35, 0.6) 100%);
    border-top: 2px solid rgba(74, 144, 226, 0.3);
    color: #5a8ec9;
    font-style: italic;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(45, 85, 255, 0.8) 100%);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    color: #ffffff;
    font-size: 24px;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 1) 0%, rgba(45, 85, 255, 1) 100%);
    border-color: #4a90e2;
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    transform: translateY(-5px);
}

/* Particle Container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Individual Particle */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(74, 144, 226, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.6), 0 0 12px rgba(74, 144, 226, 0.3);
}

/* Loading state for GitHub stats */
.stat-item.loading .stat-value {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Additional style for mobile warning */
.mobile-warning {
    max-width: 900px;
}

.mobile-warning .footer-note {
    margin-top: 30px;
    font-size: 0.9em;
    color: #99b8d9;
    font-style: italic;
    opacity: 0.8;
}


@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 1.3em;
    }

    h2 {
        font-size: 2em;
    }

    .projects-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .project-stats {
        justify-content: space-between;
    }

    .stat-item {
        flex: 1 1 40%;
    }
}