/*
Theme Name: JAAM Terminal
Theme URI: https://alvarezfitz.com
Author: Jose Antonio Alvarez
Description: Luxury minimal portfolio - Loro Piana meets Silicon Valley
Version: 2.0.0
*/

/* ========================================
   LUXURY MINIMAL DESIGN SYSTEM
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #FAFAF8;
    --text: #1A1A1A;
    --accent: #1E3A2F;
    --accent-hover: #2D5A3D;
    --secondary: #6B6B6B;
    --subtle: #E8E5E0;
    --white: #FFFFFF;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

/* ========================================
   HERO SECTION - Full Viewport
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero-name {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.hero-cursor {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--secondary), transparent);
    animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.2); opacity: 1; }
}

/* ========================================
   SECTION BASE
   ======================================== */

.section {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 80px;
    color: var(--text);
}

/* ========================================
   COMMAND CENTER - Architecture + Terminal
   ======================================== */

.command-center {
    padding: 100px 40px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.command-center-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

/* Architecture Panel */
.architecture-panel {
    background: var(--white);
    border: 1px solid var(--subtle);
    border-radius: 8px;
    padding: 30px;
}

.architecture-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 20px;
    text-align: center;
}

.architecture-svg {
    width: 100%;
    height: auto;
}

/* SVG Architecture Styles */
.arch-box rect {
    fill: var(--bg);
    stroke: var(--subtle);
    stroke-width: 1;
    transition: all 0.3s ease;
}

.arch-box:hover rect {
    stroke: var(--accent);
    fill: var(--white);
}

.orchestration-box rect {
    fill: var(--accent);
    stroke: none;
}

.box-title {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    fill: var(--text);
    text-anchor: middle;
    letter-spacing: 0.05em;
}

.orchestration-box .box-title {
    fill: var(--white);
}

.box-detail {
    font-family: var(--font-mono);
    font-size: 7px;
    fill: var(--secondary);
    text-anchor: middle;
}

.lang-tag {
    font-family: var(--font-mono);
    font-size: 8px;
    fill: rgba(255, 255, 255, 0.8);
    text-anchor: middle;
}

.connection-label {
    font-family: var(--font-mono);
    font-size: 7px;
    fill: var(--accent);
    text-anchor: middle;
}

.connection-line {
    stroke: var(--subtle);
    stroke-width: 1;
    stroke-dasharray: 4 2;
}

/* Data Pulses Animation */
.data-pulse {
    fill: var(--accent);
    opacity: 0;
}

.pulse-1 {
    animation: pulse-down-1 3s ease-in-out infinite;
}

.pulse-2 {
    animation: pulse-down-2 3s ease-in-out infinite 0.5s;
}

.pulse-3 {
    animation: pulse-down-3 3s ease-in-out infinite 1s;
}

.pulse-4 {
    animation: pulse-down-4 3s ease-in-out infinite 1.5s;
}

.pulse-5 {
    animation: pulse-down-5 3s ease-in-out infinite 2s;
}

.pulse-6 {
    animation: pulse-down-6 3s ease-in-out infinite 2.5s;
}

@keyframes pulse-down-1 {
    0% { cx: 65; cy: 75; opacity: 0; }
    10% { opacity: 1; }
    50% { cx: 65; cy: 130; opacity: 1; }
    60% { opacity: 0; }
    100% { cx: 65; cy: 130; opacity: 0; }
}

@keyframes pulse-down-2 {
    0% { cx: 200; cy: 75; opacity: 0; }
    10% { opacity: 1; }
    50% { cx: 200; cy: 130; opacity: 1; }
    60% { opacity: 0; }
    100% { cx: 200; cy: 130; opacity: 0; }
}

@keyframes pulse-down-3 {
    0% { cx: 335; cy: 75; opacity: 0; }
    10% { opacity: 1; }
    50% { cx: 335; cy: 130; opacity: 1; }
    60% { opacity: 0; }
    100% { cx: 335; cy: 130; opacity: 0; }
}

@keyframes pulse-down-4 {
    0% { cx: 100; cy: 195; opacity: 0; }
    10% { opacity: 1; }
    50% { cx: 65; cy: 240; opacity: 1; }
    60% { opacity: 0; }
    100% { cx: 65; cy: 240; opacity: 0; }
}

@keyframes pulse-down-5 {
    0% { cx: 200; cy: 195; opacity: 0; }
    10% { opacity: 1; }
    50% { cx: 200; cy: 240; opacity: 1; }
    60% { opacity: 0; }
    100% { cx: 200; cy: 240; opacity: 0; }
}

@keyframes pulse-down-6 {
    0% { cx: 300; cy: 195; opacity: 0; }
    10% { opacity: 1; }
    50% { cx: 335; cy: 240; opacity: 1; }
    60% { opacity: 0; }
    100% { cx: 335; cy: 240; opacity: 0; }
}

/* Terminal Panel */
.terminal-panel {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots .dot.red { background: #ff5f56; }
.terminal-dots .dot.yellow { background: #ffbd2e; }
.terminal-dots .dot.green { background: #27ca40; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
}

.terminal-output {
    color: #a0a0a0;
    white-space: pre-wrap;
    margin-bottom: 10px;
}

.terminal-output .success {
    color: #27ca40;
}

.terminal-output .info {
    color: #58a6ff;
}

.terminal-output .command {
    color: var(--accent);
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-prompt {
    color: var(--accent);
}

.terminal-command {
    color: #e0e0e0;
}

.terminal-cursor {
    color: var(--accent);
    animation: blink 1s infinite;
}

/* ========================================
   WORK - Project Cards
   ======================================== */

.work-section {
    padding: 120px 40px;
    background: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.work-card {
    background: var(--bg);
    border: 1px solid var(--subtle);
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.work-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    color: var(--accent);
}

.work-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1;
    fill: none;
}

.work-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text);
}

.work-platform {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary);
}

/* ========================================
   CREDENTIALS
   ======================================== */

.credentials-section {
    padding: 120px 40px;
    text-align: center;
}

.credentials-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.credential {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.credential-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.credential-icon svg {
    width: 100%;
    height: 100%;
}

.credential-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary);
}

.credential-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text);
}

/* ========================================
   CONTACT
   ======================================== */

.contact-section {
    padding: 160px 40px;
    text-align: center;
    background: var(--white);
}

.contact-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
    padding: 15px 30px;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: var(--accent);
    color: var(--white);
}

.contact-arrow {
    transition: transform 0.3s ease;
}

.contact-email:hover .contact-arrow {
    transform: translateX(5px);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: 60px 40px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--secondary);
    border-top: 1px solid var(--subtle);
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .command-center-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .terminal-body {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 20px;
    }

    .command-center {
        padding: 60px 20px;
    }

    .architecture-panel {
        padding: 20px;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .work-card {
        padding: 30px 20px;
    }

    .credentials-row {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .work-grid {
        grid-template-columns: 1fr;
    }

    .credentials-row {
        flex-direction: column;
        gap: 30px;
    }
}
