/* CSS Variables for 8-bit Color Palette */
:root {
    --primary-red: #FF6B6B;
    --primary-teal: #4ECDC4;
    --primary-blue: #45B7D1;
    --background-dark: #1A1A2E;
    --background-darker: #16213E;
    --accent-yellow: #FFD93D;
    --accent-green: #6BCF7F;
    --text-light: #FFFFFF;
    --text-muted: #B8B8B8;
    --card-bg: #2C3E50;
    --card-border: #34495E;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --glow-color: rgba(255, 107, 107, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
}

.loading-pixels {
    margin-bottom: 2rem;
}

.loading-pixel {
    background: var(--primary-red);
    animation: pulse 1.5s infinite;
}

.loading-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--primary-red);
    animation: blink 1s infinite;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, var(--primary-red) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--primary-teal) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--primary-blue) 0%, transparent 50%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.avatar-container {
    margin-bottom: 2rem;
    position: relative;
}

.avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    border: 3px solid var(--primary-red);
    box-shadow: 0 0 20px var(--glow-color);
    object-fit: cover;
    transition: all 0.3s ease;
    animation: avatarGlow 2s ease-in-out infinite alternate;
}

.avatar-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary-red);
}

.pixel-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 4px solid var(--primary-red);
    background: var(--card-bg);
    position: relative;
    animation: avatarGlow 3s ease-in-out infinite;
}

.avatar-pixels {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pixel-row {
    display: flex;
    flex: 1;
}

.pixel {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pixel.green { background: var(--accent-green); }
.pixel.skin { background: #FFB6C1; }
.pixel.black { background: #000; }

.pixel-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    animation: textGlow 2s ease-in-out infinite;
}

.subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.key-differentiator {
    font-size: 1rem;
    color: var(--accent-yellow);
    margin-bottom: 2rem;
    font-weight: 600;
    font-style: italic;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Pixel Button Styles */
.pixel-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    padding: 1rem 2rem;
    border: 3px solid var(--text-light);
    background: var(--card-bg);
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pixel-btn::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    background: var(--primary-red);
    z-index: -1;
    transition: all 0.3s ease;
}

.pixel-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--shadow-color);
}

.pixel-btn:hover::before {
    top: 2px;
    left: 2px;
    right: -2px;
    bottom: -2px;
}

.pixel-btn.primary {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.pixel-btn.secondary {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
}

.pixel-btn.small {
    font-size: 0.6rem;
    padding: 0.5rem 1rem;
}

/* Card Container */
.card-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border: 3px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-teal), var(--primary-blue));
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--card-border);
    border-radius: 0 0 8px 8px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px var(--shadow-color);
    border-color: var(--primary-red);
}

.card:hover::before {
    background: linear-gradient(90deg, var(--primary-red), var(--accent-yellow), var(--primary-red));
    animation: rainbow 2s linear infinite;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--card-border);
}

.pixel-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.card-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Content */
.card-content h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--primary-teal);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.card-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.card-content li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 0.8rem;
}

/* Skills Section */
.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: var(--primary-teal);
    background: rgba(78, 205, 196, 0.1);
}

.skill-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.skill-details strong {
    color: var(--primary-teal);
    font-family: 'Orbitron', monospace;
}

.skill-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Certifications */
.cert-section {
    margin-bottom: 1.5rem;
}

.cert-section h5 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.cert-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-red);
    font-size: 0.9rem;
}

.status {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--accent-green);
    text-align: center;
    margin-top: 1rem;
    text-transform: uppercase;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--card-border);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-slot:hover {
    border-color: var(--primary-blue);
    background: rgba(69, 183, 209, 0.1);
    transform: scale(1.05);
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.project-slot h5 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.tech-tags {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Press Start 2P', monospace;
}

.project-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.loading-text {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Contact */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.contact-item:hover {
    border-color: var(--primary-teal);
    background: rgba(78, 205, 196, 0.1);
}

.contact-icon {
    font-size: 1.2rem;
    min-width: 2rem;
    text-align: center;
}

.contact-text {
    flex: 1;
}

.contact-link {
    flex: 1;
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-yellow);
}

.copy-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover .copy-hint {
    opacity: 1;
}

.response-time {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--accent-green);
    text-align: center;
    margin-top: 1rem;
}

/* Fun Facts */
.fun-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.fun-item:hover {
    border-color: var(--accent-yellow);
    background: rgba(255, 217, 61, 0.1);
}

.fun-icon {
    font-size: 1.2rem;
    min-width: 2rem;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 3px solid var(--primary-red);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-red);
}

.modal-header h3 {
    font-family: 'Press Start 2P', monospace;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.project-image {
    text-align: center;
    margin-bottom: 1rem;
}

.placeholder-image {
    font-size: 4rem;
    opacity: 0.5;
}

.project-tech {
    margin: 1rem 0;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Achievement Stats */
.achievement-stats {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    border-color: var(--accent-yellow);
    background: rgba(255, 217, 61, 0.1);
    transform: translateY(-2px);
}

.achievement-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.achievement-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Service Items */
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--primary-teal);
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
    margin-top: 0.25rem;
}

.service-details strong {
    color: var(--primary-teal);
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.service-details p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Quest Sections */
.quest-section {
    margin-bottom: 2rem;
}

.quest-section h5 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.quest-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-red);
    border-radius: 4px;
}

.quest-item strong {
    color: var(--primary-teal);
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.75rem;
}

.quest-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quest-item li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.quest-item li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 0.8rem;
}

/* Testimonial Placeholder */
.testimonial-placeholder {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--card-border);
    border-radius: 4px;
    margin-top: 1rem;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-placeholder p {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 20px var(--glow-color); }
    50% { box-shadow: 0 0 40px var(--glow-color); }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5); }
    50% { text-shadow: 2px 2px 10px var(--primary-red); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 1rem;
    }
    
    .pixel-text {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .card-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pixel-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .pixel-text {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .pixel-avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar-image {
        width: 100px;
        height: 100px;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 0.7rem;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-teal);
} 