/* ===== Root Variables - Retro Gaming Theme ===== */
:root {
    --primary-color: #FF00FF;      /* Neon Magenta */
    --secondary-color: #00FFFF;    /* Neon Cyan */
    --accent-color: #FFFF00;       /* Neon Yellow */
    --dark-bg: #0a0a0a;            /* Almost black */
    --text-color: #00FF00;         /* Neon Green */
    --border-color: #FF00FF;
    --white: #00FF00;
    --shadow: 0 0 20px rgba(0, 255, 0, 0.5), 0 0 40px rgba(255, 0, 255, 0.3);
    --transition: all 0.2s ease;
    --glow: 0 0 10px currentColor;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 0, 255, 0.03),
        rgba(255, 0, 255, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 9999;
}

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 20px auto;
    background-color: var(--dark-bg);
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 30px var(--primary-color), inset 0 0 30px rgba(255, 0, 255, 0.2);
}

.retro-screen {
    position: relative;
}

.retro-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(0, 255, 255, 0.3);
}

/* ===== Header ===== */
.header {
    background-color: var(--dark-bg);
    color: var(--text-color);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color), inset 0 0 20px rgba(0, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.arcade-header {
    background: repeating-linear-gradient(
        90deg,
        var(--dark-bg),
        var(--dark-bg) 2px,
        rgba(255, 0, 255, 0.1) 2px,
        rgba(255, 0, 255, 0.1) 4px
    );
}

.arcade-title {
    animation: flicker 0.15s infinite;
}

.header-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    color: var(--primary-color);
}

.header .title {
    font-size: 0.9em;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--secondary-color);
    color: var(--secondary-color);
}

.arcade-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 0.6em;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 0;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    text-shadow: 0 0 10px var(--accent-color);
    transition: var(--transition);
    border: 1px solid var(--accent-color);
    padding: 2px 8px;
}

.contact-info a:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--accent-color);
}

/* ===== Main Content ===== */
.main-content {
    padding: 20px;
}

/* ===== Section Styles ===== */
.section {
    margin-bottom: 25px;
    background-color: rgba(0, 255, 0, 0.05);
    padding: 15px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.level-indicator {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
    font-size: 0.6em;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.2em;
    color: var(--accent-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    text-shadow: 0 0 10px var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.section p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.7em;
}

/* ===== Skills Grid ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-category {
    background-color: rgba(255, 0, 255, 0.1);
    padding: 15px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    transition: var(--transition);
}

.skill-category:hover {
    box-shadow: 0 0 30px var(--primary-color), 0 0 50px var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: rgba(0, 255, 255, 0.15);
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 0.8em;
    text-shadow: 0 0 10px var(--secondary-color);
}

.skill-category p {
    font-size: 0.6em;
    margin: 0;
    color: var(--text-color);
}

/* ===== Experience Items ===== */
.experience-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 2px solid var(--secondary-color);
    background-color: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.experience-item:last-child {
    border-bottom: 2px solid var(--secondary-color);
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.experience-header h3 {
    font-size: 0.8em;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-color);
}

.company {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.7em;
    text-shadow: 0 0 8px var(--accent-color);
}

.date {
    background-color: rgba(255, 255, 0, 0.2);
    padding: 3px 8px;
    border: 1px solid var(--accent-color);
    font-size: 0.6em;
    color: var(--accent-color);
    margin-left: auto;
}

.experience-details {
    list-style: none;
    padding-left: 0;
}

.experience-details li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    line-height: 1.4;
    font-size: 0.65em;
}

.experience-details li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== Education Items ===== */
.education-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 0, 255, 0.1);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.education-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.education-header h3 {
    font-size: 0.8em;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 10px var(--secondary-color);
}

.school {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.7em;
    text-shadow: 0 0 8px var(--accent-color);
}

.education-header .date {
    margin-left: auto;
}

.education-item p {
    margin: 0;
    font-size: 0.65em;
}

/* ===== Certifications List ===== */
.certifications-list {
    list-style: none;
    padding-left: 0;
    columns: 2;
    column-gap: 20px;
}

.certifications-list li {
    padding-left: 20px;
    margin-bottom: 12px;
    position: relative;
    break-inside: avoid;
    font-size: 0.65em;
}

.certifications-list li:before {
    content: "▲";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

/* ===== WIP Project Styles ===== */
.wip-project {
    border: 2px dashed var(--secondary-color);
    background-color: rgba(0, 255, 255, 0.08);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.65em;
}

.project-status {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
    padding: 3px 8px;
    border: 1px solid var(--accent-color);
}

.project-date {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.project-priority {
    color: #FF6600;
    text-shadow: 0 0 8px #FF6600;
}

.progress-bar {
    width: 100%;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--secondary-color);
    margin-bottom: 15px;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--secondary-color);
    transition: width 0.3s ease;
}

.project-description {
    font-size: 0.65em;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    font-size: 0.6em;
    padding: 4px 8px;
    border: 1px solid currentColor;
    display: inline-block;
}

.tag.frontend {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
}

.tag.backend {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.tag.database {
    color: #00FF99;
    text-shadow: 0 0 8px #00FF99;
}

.tag.tool {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

.deliverables {
    background-color: rgba(0, 255, 0, 0.05);
    padding: 12px;
    border-left: 2px solid var(--primary-color);
    margin-top: 12px;
}

.deliverables h3 {
    font-size: 0.65em;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    margin-bottom: 8px;
}

.deliverables ul {
    list-style: none;
    padding: 0;
}

.deliverables li {
    font-size: 0.65em;
    padding: 4px 0;
    color: var(--text-color);
}

.deliverables li::before {
    content: "";
    margin-right: 5px;
}

/* ===== Statistics Section ===== */
.stats-section {
    background-color: rgba(255, 0, 255, 0.08) !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    background-color: rgba(255, 0, 255, 0.1);
    border: 2px solid var(--primary-color);
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 30px var(--primary-color), 0 0 50px var(--secondary-color);
}

.stat-value {
    font-size: 1.2em;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.65em;
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
}

/* ===== Milestone List ===== */
.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.milestone {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-left: 3px solid var(--secondary-color);
    background-color: rgba(0, 255, 255, 0.05);
}

.milestone-date {
    color: var(--accent-color);
    font-size: 0.6em;
    text-shadow: 0 0 8px var(--accent-color);
    min-width: 90px;
    font-weight: 700;
}

.milestone-text {
    color: var(--text-color);
    font-size: 0.65em;
    flex: 1;
}

/* ===== Responsive Stats Grid ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .project-meta {
        gap: 5px;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border: 3px solid var(--primary-color);
    }

    .header {
        padding: 20px 15px;
    }

    .header-content h1 {
        font-size: 1.8em;
    }

    .header .title {
        font-size: 0.7em;
    }

    .arcade-contact {
        font-size: 0.55em;
        gap: 10px;
    }

    .main-content {
        padding: 15px;
    }

    .section-title {
        font-size: 1em;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .date {
        margin-left: 0;
        align-self: flex-start;
    }

    .certifications-list {
        columns: 1;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .container {
        margin: 5px;
        border: 2px solid var(--primary-color);
    }

    .header {
        padding: 15px 10px;
    }

    .header-content h1 {
        font-size: 1.2em;
    }

    .header .title {
        font-size: 0.6em;
    }

    .arcade-contact {
        font-size: 0.5em;
        gap: 5px;
    }

    .main-content {
        padding: 10px;
    }

    .section {
        margin-bottom: 15px;
        padding: 10px;
    }

    .section-title {
        font-size: 0.95em;
    }

    .experience-details li,
    .certifications-list li {
        padding-left: 15px;
    }
}

/* ===== Print Styles ===== */
@media print {
    body {
        background-color: var(--white);
        color: var(--dark-bg);
    }

    .container {
        max-width: 100%;
        box-shadow: none;
        border: 1px solid var(--dark-bg);
    }

    .header {
        box-shadow: none;
        border-bottom-color: var(--dark-bg);
    }

    .main-content {
        padding: 30px;
    }

    .section {
        page-break-inside: avoid;
        box-shadow: none;
        border-color: var(--dark-bg);
    }

    .skill-category,
    .education-item,
    .experience-item {
        page-break-inside: avoid;
        box-shadow: none;
        border-color: var(--dark-bg);
    }

    a {
        color: var(--dark-bg);
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px currentColor;
    }
    50% {
        text-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

.header-content h1 {
    animation: glow 2s ease-in-out infinite;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    font-size: 0.65em;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}
