/************************************************
*  Portfolio Website 
* Kesiena Berezi
* CSCI 324 - CSS Lab
* Due Feb 18, 2025
* Main CSS file for the portfolio website

************************************************/

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    will-change: transform; /* Optimize canvas animations */
}

.intro {
    position: fixed; /* Changed to fixed */
    top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   text-align: center;
   color: white;
   font-family: 'Courier New', monospace;
    text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.8);
    padding: 40px;
   border-radius: 10px;
    width: 80%;
    max-width: 800px;
    z-index: 1000; /* Higher z-index */
   animation: glitch 1.5s infinite alternate;
}

h1 {
    font-size: 4.5rem;
   letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #e60073,
        0 0 40px #e60073;
}

h2 {
    font-size: 2.5rem;
    opacity: 1;
    margin-top: 10px;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #0ff;
}

@keyframes glitch {
   0% { text-shadow: 0px 0px 10px rgba(255, 0, 255, 0.8); }
   50% { text-shadow: 0px 0px 15px rgba(255, 0, 255, 1); }
   100% { text-shadow: 0px 0px 10px rgba(255, 0, 255, 0.8); }
   will-change: text-shadow; /* Optimize glitch animation */
}

@keyframes flicker {
   0% { opacity: 1; }
   50% { opacity: 0.8; text-shadow: 0px 0px 20px red; }
   100% { opacity: 1; text-shadow: 0px 0px 10px red; }
   will-change: opacity, text-shadow; /* Optimize flicker animation */
}

.profile img {
    position: fixed;
    bottom: 50px; /* Position from bottom instead */
   left: 50%;
    transform: translateX(-50%);
   width: 200px;
   border-radius: 50%;
   filter: grayscale(100%) contrast(1.2);
   animation: glitch 0.8s infinite alternate;
    z-index: 1001;
    will-change: transform; /* Optimize profile image animation */
}

@keyframes glitch {
    0% { text-shadow: 0px 0px 10px rgba(255, 0, 255, 0.8); }
    50% { text-shadow: 0px 0px 15px rgba(255, 0, 255, 1); }
    100% { text-shadow: 0px 0px 10px rgba(255, 0, 255, 0.8); }
}

.intro-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: auto;
}

.line-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 8px;
    background: #00ff8c;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px #00ff8c;
    opacity: 0;
}

.line-animation.animate {
    opacity: 1;
    animation: drawLine 0.8s ease-out forwards;
}

.line-animation.expand {
    animation: expandLine 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.line-animation.fade-out {
    animation: fadeOut 0.2s ease-out forwards;
}

.name-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.name-reveal.visible {
    animation: fadeIn 0.5s ease-out forwards;
}

.name-reveal h1 {
    font-size: 6rem;
    color: #fff;
    text-shadow: 
        0 0 10px #00ff8c,
        0 0 20px #00ff8c,
        0 0 30px #00ff8c,
        0 0 40px #00ff8c;
    margin: 0;
    font-weight: bold;
    letter-spacing: 5px;
    text-align: center;
}

.name-reveal h2 {
    font-size: 2.5rem;
   

    color: #fff;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
    opacity: 0.8;
}

@keyframes drawLine {
    to {
        width: 600px;
    }
}

@keyframes expandLine {
    0% {
        height: 8px;
        width: 600px;
    }
    100% {
        height: 400px;
        width: 800px;
        opacity: 0.3;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.profile-image {
    margin: 0;
    opacity: 0;
    transform: scale(0.8);
}

.name-reveal.visible .profile-image {
    animation: scaleIn 0.5s ease-out forwards;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #00ff8c;
    box-shadow: 
        0 0 20px #00ff8c,
        0 0 40px #00ff8c;
    filter: grayscale(100%) contrast(1.2);
    object-fit: cover;
}

/* Simplified animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.about-section.visible {
    opacity: 1;
    pointer-events: auto;
}

.about-container {
    position: relative;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ff8c;
    border-radius: 10px;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    box-shadow: 
        0 0 20px rgba(0, 255, 140, 0.3),
        0 0 40px rgba(0, 255, 140, 0.2);
    backdrop-filter: blur(5px);
}

.about-header {
    margin-bottom: 30px;
}

.about-header .status-indicator {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 140, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #00ff8c;
}

.about-header h2 {
    color: #00ff8c;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #00ff8c;
    padding-bottom: 10px;
}

.terminal-text {
    font-family: 'Courier New', monospace;
    color: #fff;
    line-height: 1.6;
}

.terminal-text p {
    margin: 10px 0;
    opacity: 0;
    transform: translateY(10px);
}

.typing {
    animation: type 1s steps(60, end) forwards;
}

.typing-delay-1 { animation: type 1s steps(60, end) 1s forwards; }
.typing-delay-2 { animation: type 1s steps(60, end) 2s forwards; }
.typing-delay-3 { animation: type 1s steps(60, end) 3s forwards; }
.typing-delay-4 { animation: type 1s steps(60, end) 4s forwards; }
.typing-delay-5 { animation: type 1s steps(60, end) 5s forwards; }
.typing-delay-6 { animation: type 1s steps(60, end) 6s forwards; }

.skills-list {
    list-style-type: none;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(10px);
}

.skills-list li {
    margin: 5px 0;
    color: #00ff8c;
}

.skills-list li::before {
    content: ">";
    margin-right: 10px;
    color: #00ff8c;
}

@keyframes type {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-trigger {
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #00ff8c;
    color: #00ff8c;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(20px);
    z-index: 1002;
    pointer-events: auto;
}

.name-reveal.visible .about-trigger {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.about-trigger:hover {
    background: #00ff8c;
    color: black;
    box-shadow: 0 0 20px #00ff8c;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #00ff8c;
    font-size: 24px;
    border: 2px solid #00ff8c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0;
    line-height: 1;
    z-index: 1004; /* Make sure it's above other elements */
    outline: none;
}

.close-button:hover {
    background: #00ff8c;
    color: black;
    box-shadow: 0 0 20px #00ff8c;
}

.projects-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.projects-section.visible {
    opacity: 1;
    pointer-events: auto;
}

.projects-container {
    width: 90%;
    max-width: 1200px;
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Add custom scrollbar styling */
.projects-container::-webkit-scrollbar {
    width: 8px;
}

.projects-container::-webkit-scrollbar-track {
    background: rgba(0, 255, 140, 0.1);
    border-radius: 4px;
}

.projects-container::-webkit-scrollbar-thumb {
    background: #00ff8c;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
}

.section-header h2 {
    color: #00ff8c;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #00ff8c;
    padding-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.project-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff8c;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.3);
}

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

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

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff8c;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

/* Status dot colors for different project statuses */
.status-dot.completed {
    background: #00ff8c; /* Green for completed */
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
}

.status-dot.in-progress {
    background: #ffaa00; /* Orange for in-progress */
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    animation: pulse-orange 2s infinite;
}

.status-dot.pending {
    background: #ff4444; /* Red for pending */
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    animation: pulse-red 2s infinite;
}

/* Additional pulse animations for different colors */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 170, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 170, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 170, 0, 0);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.project-header h3 {
    color: #00ff8c;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    margin: 0;
}

.project-description {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tech-tag {
    background: rgba(0, 255, 140, 0.1);
    border: 1px solid #00ff8c;
    color: #00ff8c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.project-link {
    color: #00ff8c;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.project-link:hover {
    text-shadow: 0 0 10px #00ff8c;
}

.project-link .arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.project-link:hover .arrow {
    transform: translateX(5px);
}

@keyframes scan-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.button-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.glow-button {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 2px solid #00ff8c;
    color: #00ff8c;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
}

.glow-button i {
    font-size: 1.1rem;
}

.glow-button:hover {
    background: #00ff8c;
    color: black;
    box-shadow: 0 0 20px #00ff8c;
    backdrop-filter: blur(0);
}

/* Keep the appearance animation separate from hover effects */
.name-reveal.visible .glow-button {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger only the appearance animation, not the hover effects */
.name-reveal.visible .button-container .glow-button:nth-child(1) { 
    transition: opacity 0.5s ease 0.8s, transform 0.5s ease 0.8s, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; 
}
.name-reveal.visible .button-container .glow-button:nth-child(2) { 
    transition: opacity 0.5s ease 1s, transform 0.5s ease 1s, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; 
}
.name-reveal.visible .button-container .glow-button:nth-child(3) { 
    transition: opacity 0.5s ease 1.2s, transform 0.5s ease 1.2s, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; 
}

.projects-trigger {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #00ff8c;
    color: #00ff8c;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(20px);
    z-index: 1002;
    pointer-events: auto;
}

.name-reveal.visible .projects-trigger {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

.projects-trigger:hover {
    background: #00ff8c;
    color: black;
    box-shadow: 0 0 20px #00ff8c;
}

.progress-container {
    margin: 15px 0;
    font-family: 'Courier New', monospace;
}

.progress-label {
    color: #00ff8c;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.progress-bar {
    height: 4px;
    background: rgba(0, 255, 140, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin: 5px 0;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #00ff8c;
    transition: width 1s ease;
    box-shadow: 0 0 10px #00ff8c;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 140, 0.8), transparent);
    animation: progress-glow 2s linear infinite;
}

.progress-percentage {
    color: #00ff8c;
    font-size: 0.8rem;
    text-align: right;
}

@keyframes progress-glow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(500%); }
}

.project-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #00ff8c;
    color: #00ff8c;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover {
    background: rgba(0, 255, 140, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.3);
}

.filter-btn.active {
    background: #00ff8c;
    color: black;
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
}

/* Add smooth transitions for filtering */
.project-card {
    transition: all 0.5s ease;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

/* Resume Button Styles */
.resume-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1005;
}

.resume-button .glow-button {
    opacity: 1; /* Override the opacity for resume button */
    transform: none; /* Override the transform for resume button */
}

/* Footer Styles */
.social-footer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    justify-content: flex-start;
    z-index: 1005;
}

.social-icons {
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.social-icon {
    color: #00ff8c;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ff8c;
    transform: translateY(-3px);
}

.resume-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.resume-section.visible {
    opacity: 1;
    pointer-events: auto;
}

.resume-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ff8c;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 
        0 0 20px rgba(0, 255, 140, 0.3),
        0 0 40px rgba(0, 255, 140, 0.2);
}

.resume-content {
    height: calc(100% - 60px); /* Account for header */
    margin-top: 20px;
    overflow: hidden;
    border-radius: 5px;
}

.resume-content iframe {
    background: white;
    border-radius: 5px;
}

/* Resume download buttons */
.resume-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.resume-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #00ff8c;
    color: #00ff8c;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.resume-download-btn:hover {
    background: #00ff8c;
    color: black;
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
}

.resume-download-btn i {
    font-size: 1rem;
}

.skills-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.skills-section.visible {
    opacity: 1;
    pointer-events: auto;
}

.skills-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ff8c;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.3);
    overflow-y: auto;
}

.skills-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.skill-filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #00ff8c;
    color: #00ff8c;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.skill-filter-btn:hover,
.skill-filter-btn.active {
    background: #00ff8c;
    color: black;
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
}

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

.skill-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff8c;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.skill-header i {
    font-size: 2rem;
    color: #00ff8c;
}

.skill-header h3 {
    color: #00ff8c;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.skill-projects {
    color: #00ff8c;
    font-size: 0.9rem;
    opacity: 0.8;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.3);
}

/* Remove old progress bar styles */
.skill-level, .skill-bar, .skill-fill, .skill-glow, .skill-percentage {
    display: none;
}

/* Add styles for the projects popup */
.projects-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1006;
}

.projects-popup.visible {
    display: flex;
}

.popup-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff8c;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.3);
}

.popup-content h2 {
    color: #00ff8c;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.related-projects {
    display: grid;
    gap: 20px;
}

.related-project-card {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff8c;
    border-radius: 8px;
    padding: 20px;
}

.related-project-card h3 {
    color: #00ff8c;
    margin-bottom: 10px;
}

.related-project-card p {
    color: #fff;
    margin-bottom: 15px;
}

/* Add these new styles */
.about-corner-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1005;
}

.skills-corner-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1005;
}

/* Same override as resume button */
.about-corner-button .glow-button,
.skills-corner-button .glow-button {
    opacity: 1;
    transform: none;
}

/* Project Details Popup Styles */
.project-details-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1007;
}

.project-details-popup.visible {
    display: flex;
}

.project-details-popup .popup-content {
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff8c;
    border-radius: 10px;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

/* Image Slider Styles */
.project-slider {
    position: relative;
    width: 100%;
    height: 400px; /* Increased height */
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    flex-shrink: 0;
    padding: 20px; /* Add padding around images */
}

/* Make the navigation buttons more visible */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #00ff8c;
    border: 1px solid #00ff8c;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.slider-btn:hover {
    background: rgba(0, 255, 140, 0.2);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* Update dot navigation styles */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #00ff8c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00ff8c;
    box-shadow: 0 0 10px #00ff8c;
}

/* Project Info Styles */
.project-info {
    padding: 20px;
}

.project-title {
    color: #00ff8c;
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    color: #00ff8c;
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 140, 0.3);
    padding-bottom: 5px;
}

.info-section p {
    color: #fff;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ff8c;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #00ff8c;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: #00ff8c;
    color: black;
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.5);
}

/* Add this to your CSS */
.preload-container {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Add these new styles */
.status-container {
    margin: 20px 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 140, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #00ff8c;
    margin-top: 10px;
}

.status-dot.pulsing {
    width: 10px;
    height: 10px;
    background-color: #00ff8c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    color: #00ff8c;
    font-family: 'Courier New', monospace;
}

.cta-text {
    margin-top: 30px;
    color: #00ff8c;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 140, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 140, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 140, 0);
    }
}

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

/* Add these styles */
.global-status {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1008; /* Higher than other elements */
}

.global-status .status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #00ff8c;
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.2);
    backdrop-filter: blur(5px);
}

.global-status .status-dot.pulsing {
    width: 8px;
    height: 8px;
    background-color: #00ff8c;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.global-status .status-text {
    color: #00ff8c;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Update the pulse animation to be more subtle for the global status */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 140, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 255, 140, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 140, 0);
    }
}

/* Add these styles */
.skill-card {
    transition: all 0.3s ease;
}

.skill-filter-btn {
    transition: all 0.3s ease;
}

.skill-filter-btn.active {
    background: rgba(0, 255, 140, 0.2);
    border-color: #00ff8c;
    color: #00ff8c;
}

/* =============================================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================================================= */

/* Base styles are mobile-first, then we add larger screen styles */

/* Small devices (phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    .name-reveal h1 {
        font-size: 3rem !important;
        letter-spacing: 2px;
        line-height: 1.1;
        margin: 10px 0;
    }
    
    .name-reveal h2 {
        font-size: 1.5rem !important;
        margin: 5px 0;
    }
    
    /* Profile image sizing */
    .profile-image img {
        width: 100px;
        height: 100px;
    }
    
    /* Button container adjustments */
    .button-container {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    .glow-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 200px;
        justify-content: center;
    }
    
    /* Corner buttons positioning */
    .about-corner-button,
    .skills-corner-button,
    .resume-button {
        position: fixed;
        z-index: 1005;
    }
    
    .about-corner-button {
        top: 10px;
        left: 10px;
    }
    
    .skills-corner-button {
        bottom: 10px; /* Back to original position */
        right: 10px;
    }
    
    .resume-button {
        top: 10px;
        right: 10px;
    }
    
    .about-corner-button .glow-button,
    .skills-corner-button .glow-button,
    .resume-button .glow-button {
        padding: 6px 12px;
        font-size: 0.8rem;
        width: auto;
        min-width: 80px;
    }
    
    /* Social footer adjustments - compact layout to avoid overlap */
    .social-footer {
        bottom: 10px;
        left: 10px;
        width: auto;
    }
    
    .social-icons {
        justify-content: flex-start;
        gap: 8px;
        padding: 4px 8px;
        flex-wrap: nowrap; /* Don't wrap to keep compact */
        background: rgba(0, 0, 0, 0.7);
        border-radius: 20px;
        border: 1px solid #00ff8c;
        max-width: calc(100vw - 100px); /* Leave space for skills button */
        overflow-x: auto; /* Allow scroll if needed */
    }
    
    .social-icon {
        font-size: 0.9rem; /* Slightly smaller */
        flex-shrink: 0; /* Don't shrink icons */
    }
    
    /* Modal/Popup adjustments */
    .about-container,
    .projects-container,
    .resume-container,
    .skills-container {
        width: 95%;
        padding: 20px;
        margin: 10px;
        max-height: 85vh;
    }
    
    .popup-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
        max-height: 85vh;
    }
    
    /* Projects grid mobile layout */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .project-card {
        padding: 15px;
    }
    
    /* Skills grid mobile layout */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .skill-card {
        padding: 15px;
    }
    
    /* Filter buttons mobile layout */
    .project-filters,
    .skills-filters {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .filter-btn,
    .skill-filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    /* Image slider mobile adjustments */
    .project-slider {
        height: 250px;
    }
    
    .slider-btn {
        padding: 10px 12px;
        font-size: 1.2rem;
    }
    
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }
    
    /* Resume mobile optimization */
    .resume-container {
        height: 95vh; /* Use almost full screen height */
        padding: 15px; /* Reduce padding for more space */
    }
    
    .resume-content {
        height: calc(100% - 80px); /* Adjust for header + buttons */
        margin-top: 15px;
    }
    
    .resume-content iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 5px;
        /* Remove scaling, let iframe handle mobile display */
        transform: none;
    }
    
    /* Resume buttons mobile styling */
    .resume-actions {
        flex-direction: row; /* Keep horizontal for better space usage */
        gap: 8px;
        margin-top: 10px;
        justify-content: space-between;
    }
    
    .resume-download-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        justify-content: center;
        min-height: 44px; /* Touch target */
        flex: 1; /* Equal width buttons */
        text-align: center;
    }
    
    /* Hide iframe on very small screens and show download options prominently */
    @media (max-width: 480px) {
        .resume-content iframe {
            display: none;
        }
        
        .resume-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: #00ff8c;
            font-family: 'Courier New', monospace;
        }
        
        .resume-content::before {
            content: "📄 Resume Preview";
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: #00ff8c;
        }
        
        .resume-content::after {
            content: "Use the buttons above to view or download the full resume";
            font-size: 0.9rem;
            opacity: 0.8;
            margin-top: 15px;
        }
    }
    
    /* Terminal text mobile adjustments */
    .terminal-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Section headers mobile */
    .section-header h2,
    .about-header h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    /* Canvas performance optimization for mobile */
    canvas {
        will-change: auto; /* Reduce will-change for better mobile performance */
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .name-reveal h1 {
        font-size: 4rem;
        letter-spacing: 3px;
    }
    
    .name-reveal h2 {
        font-size: 2rem;
    }
    
    .profile-image img {
        width: 120px;
        height: 120px;
    }
    
    .button-container {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .glow-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }
    
    .about-container,
    .projects-container,
    .resume-container,
    .skills-container {
        width: 90%;
        padding: 25px;
    }
    
    .popup-content {
        width: 90%;
        padding: 25px;
    }
    
    .project-slider {
        height: 300px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .name-reveal h1 {
        font-size: 5rem;
        letter-spacing: 4px;
    }
    
    .name-reveal h2 {
        font-size: 2.2rem;
    }
    
    .profile-image img {
        width: 140px;
        height: 140px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    /* Default styles already optimized for desktop */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Landscape orientation specific adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .name-reveal h1 {
        font-size: 2.5rem;
        margin: 5px 0;
    }
    
    .name-reveal h2 {
        font-size: 1.3rem;
        margin: 5px 0;
    }
    
    .profile-image img {
        width: 80px;
        height: 80px;
    }
    
    .button-container {
        gap: 8px;
    }
    
    .glow-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .social-icons {
        padding: 6px 12px;
        gap: 12px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets for better mobile usability */
    .glow-button,
    .filter-btn,
    .skill-filter-btn,
    .close-button {
        min-height: 44px; /* Apple's recommended minimum touch target */
        min-width: 44px;
    }
    
    .project-card,
    .skill-card {
        min-height: 44px;
        cursor: default; /* Remove cursor pointer on touch devices */
    }
    
    /* Remove hover effects on touch devices */
    .glow-button:hover,
    .filter-btn:hover,
    .skill-filter-btn:hover,
    .project-card:hover,
    .skill-card:hover,
    .social-icon:hover {
        transform: none;
        box-shadow: none;
        background: inherit;
        color: inherit;
    }
    
    /* Add active states for touch feedback */
    .glow-button:active {
        background: #00ff8c;
        color: black;
        transform: scale(0.98);
    }
    
    .project-card:active,
    .skill-card:active {
        transform: scale(0.98);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable resource-intensive animations */
    .line-animation,
    .matrix-rain,
    .circuit-board {
        animation: none !important;
    }
    
    canvas {
        display: none; /* Hide canvas animations for better performance */
    }
}

