/* ============================================
   JOHN PALLI - TERMINAL PORTFOLIO STYLESHEET
   ============================================ */

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

:root {
    /* Terminal Color Palette */
    --bg-primary: #0a0e14;
    --bg-secondary: #12171e;
    --bg-tertiary: #1a2028;
    --terminal-green: #00ff41;
    --terminal-cyan: #00d4ff;
    --terminal-yellow: #ffcc00;
    --terminal-red: #ff4444;
    --text-primary: #e6e6e6;
    --text-secondary: #a8a8a8;
    --border-color: #2a3441;
    --glow-green: rgba(0, 255, 65, 0.5);
    --glow-cyan: rgba(0, 212, 255, 0.5);

    /* Typography */
    --font-mono: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.02) 2px,
            rgba(0, 255, 65, 0.02) 4px
        );
}

/* ============================================
   TERMINAL CONTAINER
   ============================================ */

.terminal-container {
    max-width: 1400px;
    margin: 20px auto;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow:
        0 0 40px rgba(0, 255, 65, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terminal-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.terminal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.terminal-title {
    color: var(--terminal-green);
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 0 10px var(--glow-green);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-buttons span:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

.btn-close {
    background: #ff5f56;
    box-shadow: 0 0 5px rgba(255, 95, 86, 0.5);
}

.btn-minimize {
    background: #ffbd2e;
    box-shadow: 0 0 5px rgba(255, 189, 46, 0.5);
}

.btn-maximize {
    background: #27c93f;
    box-shadow: 0 0 5px rgba(39, 201, 63, 0.5);
}

/* ============================================
   TERMINAL CONTENT
   ============================================ */

.terminal-content {
    padding: 40px;
    max-width: 100%;
}

.command-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px 0;
    font-size: 14px;
    opacity: 0.7;
}

.prompt {
    color: var(--terminal-cyan);
    font-weight: bold;
}

.command {
    color: var(--text-secondary);
}

.cursor {
    color: var(--terminal-green);
    animation: blink 1s infinite;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    text-align: center;
    padding: 40px 0 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.ascii-art {
    font-size: 8px;
    line-height: 1.1;
    color: var(--terminal-green);
    text-shadow: 0 0 10px var(--glow-green);
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: pre;
}

.glitch-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--terminal-cyan);
    text-shadow:
        0 0 20px var(--glow-cyan),
        2px 2px 4px rgba(0, 255, 65, 0.3);
    margin: 20px 0;
    letter-spacing: 3px;
    position: relative;
}

.professional-summary {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.highlight-green {
    color: var(--terminal-green);
    font-weight: bold;
    text-shadow: 0 0 10px var(--glow-green);
}

.summary-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 30px;
    border-left: 4px solid var(--terminal-cyan);
    border-radius: 4px;
}

/* ============================================
   EXPERTISE SECTION
   ============================================ */

.tech-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.expertise-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--terminal-cyan), var(--terminal-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    border-color: var(--terminal-cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

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

.icon {
    font-size: 2rem;
}

.card-header h3 {
    font-size: 1.2rem;
    color: var(--terminal-cyan);
    letter-spacing: 1px;
}

.tech-list {
    list-style: none;
    margin-bottom: 25px;
}

.tech-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.bullet {
    color: var(--terminal-green);
    margin-right: 10px;
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--terminal-cyan);
    color: var(--terminal-cyan);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px var(--glow-cyan);
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */

.certs-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cert-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    border-color: var(--terminal-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: translateX(5px);
}

.badge-icon {
    font-size: 2.5rem;
    filter: grayscale(0.3);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    color: var(--terminal-green);
    font-size: 1rem;
    margin-bottom: 5px;
}

.badge-text span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================
   TECHNOLOGY STACK SECTION
   ============================================ */

.stack-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.stack-categories {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.stack-category {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
}

.stack-category h4 {
    color: var(--terminal-cyan);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stack-items span {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.stack-items span:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px var(--glow-green);
    transform: scale(1.05);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 60px 0;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 30px auto;
}

.contact-content h2 {
    font-size: 2.5rem;
    color: var(--terminal-green);
    text-shadow: 0 0 20px var(--glow-green);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-btn {
    background: var(--bg-tertiary);
    border: 2px solid var(--terminal-cyan);
    color: var(--terminal-cyan);
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
}

.contact-btn:hover {
    background: var(--terminal-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--glow-cyan);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.2rem;
}

.status-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.status-dot.green {
    background: var(--terminal-green);
    box-shadow: 0 0 10px var(--glow-green);
}

.status-dot.yellow {
    background: var(--terminal-yellow);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

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

/* ============================================
   FOOTER
   ============================================ */

.terminal-footer {
    padding: 40px 0 20px 0;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-note {
    color: var(--terminal-green);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .terminal-content {
        padding: 30px;
    }

    .glitch-text {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .terminal-container {
        margin: 10px;
        border-radius: 0;
    }

    .terminal-content {
        padding: 20px;
    }

    .ascii-art {
        font-size: 6px;
    }

    .glitch-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .contact-content h2 {
        font-size: 1.8rem;
    }

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

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    .status-bar {
        flex-direction: column;
        gap: 15px;
    }

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

@media (max-width: 480px) {
    .terminal-title {
        font-size: 12px;
    }

    .ascii-art {
        display: none;
    }

    .expertise-card {
        padding: 20px;
    }

    .stack-items span {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--terminal-cyan);
    outline-offset: 4px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body {
        background: white;
        color: black;
    }

    .terminal-container {
        border: none;
        box-shadow: none;
    }

    .terminal-header,
    .command-line {
        display: none;
    }
}
