/*@import url('https://fonts.googleapis.com/css2?family=Courier+New:wght@400;700&family=JetBrains+Mono:wght@400;500;700&display=swap');*/

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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: #00ff41;
    background: #000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003300, #00ff41);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 3px solid #00ff41;
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.5);
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite alternate;
    position: relative;
}

@keyframes pulse {
    0% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.5); }
    100% { box-shadow: 0 0 60px rgba(0, 255, 65, 0.8); }
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.profile-photo-placeholder {
    font-size: 4rem;
    color: #000;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff41;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #00ff41;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px #00ff41;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #00ff41; }
    to { text-shadow: 0 0 30px #00ff41, 0 0 40px #00ff41; }
}

.hero .title {
    font-size: 1.5rem;
    color: #00cc33;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero .description {
    font-size: 1.1rem;
    color: #00aa22;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00ff41;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: #00ff41;
}

.contact-item:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

.section {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    position: relative;
}

.section::before {
    content: '[ACCESSING DATA...]';
    position: absolute;
    top: -15px;
    left: 20px;
    background: #000;
    color: #00ff41;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #00ff41;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 15px #00ff41;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

.experience-item {
    background: rgba(0, 51, 0, 0.3);
    border: 1px solid #00cc33;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #00ff41;
    box-shadow: 0 0 10px #00ff41;
}

.experience-item:hover {
    transform: translateX(10px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    background: rgba(0, 51, 0, 0.5);
}

.experience-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #00ff41;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.experience-period {
    color: #00cc33;
    font-weight: 500;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.experience-description {
    color: #00aa22;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.achievements {
    list-style: none;
}

.achievements li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: #00cc33;
    transition: color 0.3s ease;
}

.achievements li:hover {
    color: #00ff41;
}

.achievements li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff41;
    font-weight: bold;
    /*animation: blink 1.5s infinite;*/
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

.skill-category {
    background: rgba(0, 51, 0, 0.2);
    border: 1px solid #00cc33;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.skill-category:hover {
    border-color: #00ff41;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.3);
    background: rgba(0, 51, 0, 0.4);
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff41;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid #00cc33;
    color: #00ff41;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.skill-tag:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    transform: scale(1.05);
}

.education-item {
    background: rgba(0, 51, 0, 0.2);
    border: 1px solid #00cc33;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.education-item:hover {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: translateX(10px);
}

.github-section {
    text-align: center;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 3rem;
    position: relative;
}

.github-section::before {
    content: '[REPOSITORY ACCESS]';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #00ff41;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.github-section h2 {
    color: #00ff41;
    margin-bottom: 1.5rem;
}

.github-section p {
    color: #00aa22;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid #00ff41;
    color: #00ff41;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.github-link:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    transform: translateY(-3px);
}

.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contribution-item {
    background: rgba(0, 51, 0, 0.3);
    border: 1px solid #00cc33;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.contribution-item::before {
    content: attr(data-status);
    position: absolute;
    top: 5px;
    right: 10px;
    color: #00ff41;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
}

.contribution-item:hover {
    border-color: #00ff41;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.3);
    transform: translateY(-3px);
    background: rgba(0, 51, 0, 0.5);
}

.contribution-item h4 {
    color: #00ff41;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.contribution-item p {
    color: #00cc33;
    font-size: 0.9rem;
    margin: 0;
}

/* Terminal cursor effect */
.cursor::after {
    content: '_';
    animation: blink 1s infinite;
    color: #00ff41;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

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

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

.doom-section {
    text-align: center;
    background: rgba(0, 0, 0, 0.98);
    border: 2px solid #ff4500;
    border-radius: 10px;
    padding: 3rem;
    position: relative;
    margin-bottom: 2rem;
    min-height: 600px;
}

.doom-section::before {
    content: '[LEGACY SYSTEM]';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #ff4500;
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.doom-section h2 {
    color: #ff4500;
    text-shadow: 0 0 15px #ff4500;
}

.doom-section h2::after {
    background: #ff4500;
    box-shadow: 0 0 10px #ff4500;
}

.doom-container {
    max-width: 800px;
    margin: 0 auto;
}

.doom-intro {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid #ff4500;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.doom-intro p {
    color: #ffaa55;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.system-info {
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.info-line {
    color: #ff4500;
    margin-bottom: 0.3rem;
    animation: blink 2s infinite;
}

.tips-line {
    color: #ff4500;
}

.info-line:nth-child(2) { animation-delay: 0.2s; }
.info-line:nth-child(3) { animation-delay: 0.4s; }
.info-line:nth-child(4) { animation-delay: 0.6s; }

.doom-controls {
    margin: 2rem 0;
}

.doom-button {
    background: rgba(255, 69, 0, 0.2);
    border: 2px solid #ff4500;
    color: #ff4500;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.doom-button:hover {
    background: rgba(255, 69, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.5);
    transform: translateY(-3px);
}

.doom-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.loading-text {
    margin-top: 2rem;
    font-family: 'Courier New', monospace;
    color: #ff4500;
}

.loading-line {
    margin-bottom: 0.8rem;
    opacity: 0;
    animation: loading-appear 0.5s ease-out forwards;
}

.loading-line:nth-child(2) { animation-delay: 1s; }
.loading-line:nth-child(3) { animation-delay: 2s; }

@keyframes loading-appear {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.doom-game {
    margin-top: 2rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.game-controls {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.control-button {
    background: rgba(0, 255, 65, 0.2);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.control-button:hover {
    background: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.close-btn {
    background: rgba(255, 69, 0, 0.2);
    border-color: #ff4500;
    color: #ff4500;
}

.close-btn:hover {
    background: rgba(255, 69, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Slightly smaller base font for mobile */
    }

    .container {
        padding: 1rem; /* Reduce padding on mobile */
    }

    .hero {
        padding: 2rem 1.5rem; /* Reduce hero padding */
    }

    .hero h1 {
        font-size: 2rem; /* Further reduce for better mobile fit */
        line-height: 1.2;
    }

    .hero .title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero .description {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 0.5rem; /* Add some horizontal padding */
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch; /* Make buttons full width */
        gap: 1rem;
    }

    .contact-item {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .section {
        padding: 1.5rem 1rem; /* Reduce section padding */
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .experience-item {
        padding: 1.5rem 1rem;
    }

    .experience-title {
        font-size: 1.2rem;
    }

    .experience-period {
        font-size: 0.9rem;
    }

    .experience-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .achievements {
        padding-left: 0;
    }

    .achievements li {
        padding-left: 1.5rem;
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

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

    .skill-category {
        padding: 1.5rem 1rem;
    }

    .skill-category h3 {
        font-size: 1.1rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .education-item {
        padding: 1.2rem 1rem;
        font-size: 0.95rem;
    }

    .education-item small {
        font-size: 0.85rem;
    }

    .github-section {
        padding: 2rem 1rem;
    }

    .github-section p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

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

    .contribution-item {
        padding: 1.2rem 1rem;
    }

    .contribution-item h4 {
        font-size: 1rem;
    }

    .contribution-item p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .github-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Hide Doom section on mobile */
    .doom-section {
        display: none;
    }

    /* Profile photo adjustment for mobile */
    .profile-photo {
        width: 150px;
        height: 150px;
        margin-bottom: 1.5rem;
    }

    /* Ensure text doesn't get too narrow */
    p, li, .description {
        max-width: none; /* Remove any max-width constraints */
    }
}

/* Even smaller screens (below 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .experience-title {
        font-size: 1.1rem;
    }

    .achievements li {
        font-size: 0.85rem;
    }

    /* Reduce animation complexity on small screens for performance */
    body::before {
        animation: none;
        background-size: 30px 30px;
    }

    .hero::before {
        animation-duration: 3s;
    }
}

/* Improve readability on very small screens */
@media (max-width: 375px) {
    .container {
        padding: 0.75rem;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .section {
        padding: 1.25rem 0.75rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }
}
