/* ============================================
   Variables y Reset - Paleta Moderna
   ============================================ */
:root {
    /* Paleta de Colores */
    --primary: #473472;
    --primary-dark: #352558;
    --primary-light: #53629E;
    --secondary: #53629E;
    --accent: #87BAC3;
    --accent-light: #D6F4ED;
    
    /* Neutros */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Gradient Background Variables (for system.html) */
    --color-bg1: #473472;
    --color-bg2: #352558;
    --color1: 83, 98, 158;
    --color2: 135, 186, 195;
    --color3: 214, 244, 237;
    --color4: 71, 52, 114;
    --color5: 83, 98, 158;
    --color-interactive: 135, 186, 195;
    --circle-size: 80%;
    --blending: hard-light;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ============================================
   Linux Boot Screen
   ============================================ */
.linux-boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e27;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Consolas', 'Courier New', monospace;
    color: #00ff00;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.linux-boot-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-terminal {
    width: 90%;
    max-width: 800px;
    background: #0a0e27;
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.boot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #00ff00;
}

.boot-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.boot-version {
    font-size: 0.875rem;
    color: #87ff87;
}

.boot-content {
    min-height: 200px;
}

.boot-messages {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    line-height: 1.8;
}

.boot-line {
    color: #00ff00;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInLine 0.3s ease-in forwards;
}

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

@keyframes fadeInLine {
    to {
        opacity: 1;
    }
}

.boot-progress-container {
    margin-top: 2rem;
}

.boot-progress-label {
    font-size: 0.875rem;
    color: #87ff87;
    margin-bottom: 0.5rem;
}

.boot-progress-bar {
    width: 100%;
    height: 24px;
    background: #1a1a2e;
    border: 1px solid #00ff00;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.boot-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00 0%, #87ff87 100%);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    position: relative;
}

.boot-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 1.5s infinite;
}

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

.boot-progress-text {
    font-size: 0.875rem;
    color: #00ff00;
    text-align: center;
    font-weight: bold;
}

@media (max-width: 768px) {
    .boot-terminal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .boot-title {
        font-size: 1.25rem;
    }
    
    .boot-messages {
        font-size: 0.75rem;
    }
    
    .boot-progress-bar {
        height: 20px;
    }
}

/* ============================================
   Tipografía
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
    font-size: clamp(1.75rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================================
   Utilidades
   ============================================ */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Hero Section - Diseño Llamativo
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #473472 0%, #53629E 25%, #87BAC3 50%, #D6F4ED 75%, #87BAC3 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.1;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(71, 52, 114, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(83, 98, 158, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(135, 186, 195, 0.15) 0%, transparent 50%);
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.typing-demo {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.75rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.8;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    animation: typing 15s infinite, blink-cursor 0.75s step-end infinite;
    width: 0;
}

.typing-text::after {
    content: 'Digital Artisan';
    animation: typing-content 15s infinite;
}

@keyframes typing {
    0% {
        width: 0;
    }
    8% {
        width: 16ch;
    }
    16% {
        width: 16ch;
    }
    24% {
        width: 0;
    }
    32% {
        width: 17ch;
    }
    40% {
        width: 17ch;
    }
    48% {
        width: 0;
    }
    56% {
        width: 13ch;
    }
    64% {
        width: 13ch;
    }
    72% {
        width: 0;
    }
    100% {
        width: 0;
    }
}

@keyframes typing-content {
    0%, 16% {
        content: 'Digital Artisan';
    }
    24%, 40% {
        content: 'Web Development';
    }
    48%, 64% {
        content: 'Programming';
    }
    72%, 100% {
        content: '';
    }
}

@keyframes blink-cursor {
    0%, 50% {
        border-color: var(--primary);
    }
    51%, 100% {
        border-color: transparent;
    }
}

/* ============================================
   Console Interactive
   ============================================ */
.console-section {
    margin-top: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.console-help-text {
    color: var(--text-light);
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    text-align: center;
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
    font-style: italic;
    max-width: 700px;
    line-height: 1.2;
}

#console_window {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 18px;
    line-height: 1.5;
    color: var(--accent-light);
    width: 100%;
    max-width: 700px;
    height: 400px;
    overflow: hidden;
    user-select: none;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

#console_systembar {
    line-height: 170%;
    padding-left: 10px;
    font-weight: bold;
    color: var(--text-primary);
    height: 30px;
    border-style: outset;
    border-width: 2px;
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: linear-gradient(to right, #bbb 0%, #808080 100%);
    display: flex;
    align-items: center;
    cursor: move;
}

#console_content {
    overflow-y: auto;
    height: 370px;
    background-color: var(--bg-dark);
    border-style: ridge;
    border-width: 2px;
    border-color: #333;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 10px;
    box-sizing: border-box;
    text-align: left;
}

#console_output {
    display: block;
    left: 0;
    width: 100%;
    overflow: hidden;
    word-break: break-all;
    word-wrap: break-word;
    white-space: pre-wrap;
    color: var(--accent-light);
    min-height: calc(100% - 20px);
    text-align: left;
}

.confirm-y {
    color: #34A853;
    font-weight: bold;
    animation: flashGreen 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes flashGreen {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(52, 168, 83, 0.5);
    }
    50% {
        opacity: 0.5;
        text-shadow: 0 0 10px rgba(52, 168, 83, 0.8);
    }
}

#console_input {
    display: inline;
    width: 100%;
    overflow: hidden;
    word-break: break-all;
    word-wrap: break-word;
    white-space: pre-wrap;
    color: var(--accent-light);
    text-align: left;
}

#console_cursor {
    font-weight: bold;
    display: inline;
    position: relative;
    left: -4px;
    animation: cursor_blinker 1.2s infinite;
    animation-timing-function: linear;
    color: var(--accent);
}

#console_input_real {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    color: transparent;
    outline: none;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 18px;
    caret-color: var(--accent);
    pointer-events: auto;
}

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

/* Scrollbar styling for console */
#console_content::-webkit-scrollbar {
    width: 8px;
}

#console_content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

#console_content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

@media (max-width: 768px) {
    #console_window {
        width: 100%;
        height: 400px;
        font-size: 16px;
    }
    
    #console_content {
        height: 320px;
        padding-bottom: 50px;
        position: relative;
    }
    
    #console_systembar {
        height: 30px;
        font-size: 16px;
    }
    
    #console_input_real {
        opacity: 1 !important;
        position: absolute !important;
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px) !important;
        height: 40px !important;
        background: rgba(0, 0, 0, 0.8) !important;
        color: var(--accent-light) !important;
        border: 2px solid var(--accent) !important;
        border-radius: var(--radius-sm) !important;
        padding: 8px 12px !important;
        font-size: 16px !important;
        font-family: "Consolas", "Courier New", monospace !important;
        z-index: 10;
        box-shadow: var(--shadow-lg);
        caret-color: var(--accent);
    }
    
    #console_input {
        display: none;
    }
    
    #console_cursor {
        display: none;
    }
}

@media (max-width: 480px) {
    #console_window {
        height: 400px;
        font-size: 16px;
    }
    
    #console_content {
        height: 320px;
        padding: 10px;
        padding-bottom: 50px;
    }
    
    #console_input_real {
        font-size: 16px !important;
        height: 40px !important;
        padding: 8px 10px !important;
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    max-width: 100%;
    margin: 0 auto var(--spacing-xl);
    text-align: left;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-description p {
    margin-bottom: var(--spacing-md);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease-out 0.8s both;
}

.btn-primary,
.btn-secondary {
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-xl);
}


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

/* ============================================
   Content Pages Styles
   ============================================ */
.content-page {
    margin-top: 70px;
    padding: var(--spacing-3xl) 0;
    min-height: calc(100vh - 70px);
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.content-section {
    margin-bottom: var(--spacing-2xl);
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.content-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: 0 auto var(--spacing-md);
    max-width: 700px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.content-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.content-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.content-card .meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.content-card .company {
    color: var(--secondary);
    font-weight: 600;
}

.content-card p {
    margin-bottom: var(--spacing-sm);
}

.content-card p:last-child {
    margin-bottom: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.project-card .meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.project-card p {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-xl) 0;
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

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

    .hero-description {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   System Page Styles
   ============================================ */
.system-page {
    min-height: 100vh;
    padding: var(--spacing-3xl) 0;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.8s ease-in;
}

/* ============================================
   Gradient Background (Bubbles)
   ============================================ */
@keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes moveVertical {
    0% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(50%);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes moveHorizontal {
    0% {
        transform: translateX(-50%) translateY(-10%);
    }
    50% {
        transform: translateX(50%) translateY(10%);
    }
    100% {
        transform: translateX(-50%) translateY(-10%);
    }
}

.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
    top: 0;
    left: 0;
    z-index: 1;
}

.gradient-bg svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.gradients-container {
    filter: url(#goo) blur(40px);
    width: 100%;
    height: 100%;
}

.g1 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
    opacity: 1;
}

.g2 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 1;
}

.g3 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
    opacity: 1;
}

.g4 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}

.g5 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(50% - var(--circle-size));
    left: calc(50% - var(--circle-size));
    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}

.interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    opacity: 0.7;
}

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

.system-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.system-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.system-intro {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(71, 52, 114, 0.1);
    border: 2px solid rgba(71, 52, 114, 0.2);
    position: relative;
    z-index: 10;
}

.system-intro p {
    color: var(--text-primary);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    text-align: justify;
}

.period-section {
    margin-bottom: var(--spacing-3xl);
    position: relative;
    z-index: 10;
}

.period-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: var(--spacing-3xl) 0;
    position: relative;
    z-index: 10;
}

.period-divider::before,
.period-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.period-divider::before {
    left: 0;
}

.period-divider::after {
    right: 0;
}

.period-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(71, 52, 114, 0.1);
    border: 2px solid rgba(71, 52, 114, 0.2);
    position: relative;
    z-index: 10;
    text-align: center;
}

.period-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.period-dates {
    color: var(--text-primary);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    background: rgba(71, 52, 114, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.period-summary {
    margin-top: var(--spacing-md);
    text-align: left;
}

.period-summary p {
    color: var(--text-primary);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.period-summary p:last-child {
    margin-bottom: 0;
}

.projects-section {
    margin-top: var(--spacing-xl);
}

.section-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    box-shadow: var(--shadow-md);
    display: block;
    width: 100%;
    border: 2px solid rgba(71, 52, 114, 0.2);
}

.project-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(71, 52, 114, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(71, 52, 114, 0.1);
    position: relative;
    z-index: 10;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(71, 52, 114, 0.15);
    border-color: var(--primary);
}

.project-card:hover::before {
    opacity: 0.3;
}

.project-title {
    color: var(--primary);
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.project-description {
    color: var(--text-primary);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.project-details {
    margin-top: var(--spacing-md);
}

.details-label {
    color: var(--primary);
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.details-label:first-child {
    margin-top: 0;
}

.details-list {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.8;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.details-list li {
    margin-bottom: var(--spacing-xs);
}

.tech-stack {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xs);
}

.tech-label {
    color: var(--primary);
    font-weight: 600;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    margin-right: var(--spacing-xs);
}

.tech-pill {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius-full);
    font-size: clamp(0.7rem, 1.4vw, 0.8rem);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.tech-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

.attribute-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}

.attribute-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.attribute-card h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.attribute-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.system-footer {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.btn-back {
    padding: var(--spacing-sm) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

/* ============================================
   Browser Window Styles
   ============================================ */
.browser-window {
    max-width: 1200px;
    margin: var(--spacing-xl) auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(71, 52, 114, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 10;
    animation: slideDown 0.5s ease-out;
}

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

.browser-header {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border-bottom: 1px solid #d0d0d0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn.close {
    background: #ff5f57;
}

.control-btn.minimize {
    background: #ffbd2e;
}

.control-btn.maximize {
    background: #28ca42;
}

.control-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.browser-tabs {
    flex: 1;
    display: flex;
    gap: 4px;
}

.tab {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #d0d0d0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 200px;
}

.tab.active {
    background: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
    z-index: 1;
}

.tab-icon {
    font-size: 0.9rem;
}

.tab-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.tab-close:hover {
    background: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.browser-toolbar {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 8px;
}

.toolbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.toolbar-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.toolbar-btn:hover {
    background: #f0f0f0;
    border-color: #b0b0b0;
}

.toolbar-btn.refresh {
    padding: 6px 10px;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn.badge-btn {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    border: none;
    font-weight: 600;
    position: relative;
    padding: 6px 14px;
}

.toolbar-btn.badge-btn:hover {
    background: linear-gradient(135deg, #3367d6, #2d8f47);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.address-bar {
    flex: 1;
    max-width: 600px;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #666;
}

.address-icon {
    font-size: 0.9rem;
}

.address-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-content {
    background: white;
    min-height: 600px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.content-wrapper {
    padding: var(--spacing-2xl);
}

/* ============================================
   Page Header Styles
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.google-text {
    display: inline-block;
    font-family: 'Product Sans', 'Roboto', 'Arial', sans-serif;
    font-weight: 400;
    letter-spacing: -0.5px;
    position: relative;
    background: linear-gradient(
        to right,
        #4285F4 0%,
        #4285F4 12.5%,
        #EA4335 12.5%,
        #EA4335 25%,
        #FBBC05 25%,
        #FBBC05 37.5%,
        #4285F4 37.5%,
        #4285F4 50%,
        #34A853 50%,
        #34A853 62.5%,
        #EA4335 62.5%,
        #EA4335 75%,
        #4285F4 75%,
        #4285F4 87.5%,
        #34A853 87.5%,
        #34A853 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 100% 100%;
}

.page-intro {
    max-width: 800px;
    margin: 0 auto;
}

.page-intro p {
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.page-intro p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Period Section Styles
   ============================================ */
.period-header {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.period-title {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.period-date {
    display: block;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.period-label {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary);
}

.period-description {
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 900px;
}

.period-description-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline;
}

.period-description-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    transition: width 0.3s ease;
}

.period-description-link:hover {
    color: #4285F4;
}

.period-description-link:hover::after {
    width: 100%;
}

/* ============================================
   Project Item Styles (Accordion)
   ============================================ */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.project-item {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(
        135deg,
        #4285F4 0%,
        #EA4335 25%,
        #FBBC05 50%,
        #34A853 75%,
        #4285F4 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.project-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.project-item:hover::before {
    background: linear-gradient(
        135deg,
        #4285F4 0%,
        #EA4335 20%,
        #FBBC05 40%,
        #34A853 60%,
        #EA4335 80%,
        #4285F4 100%
    );
    animation: gradientRotate 3s ease infinite;
    background-size: 200% 200%;
}

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

.project-item.expanded {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.project-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: var(--primary);
    flex: 1;
    line-height: 1.3;
}

.project-toggle {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.project-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.project-subtitle {
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.project-content {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    cursor: default;
}

.project-content a,
.project-content button {
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.project-section {
    margin-bottom: var(--spacing-md);
}

.project-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.2rem 0;
    padding-left: var(--spacing-sm);
    position: relative;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ============================================
   Page Footer Styles
   ============================================ */
.page-footer {
    text-align: center;
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.footer-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.footer-text {
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   Responsive Browser Styles
   ============================================ */
@media (max-width: 768px) {
    .browser-window {
        margin: var(--spacing-md);
        border-radius: var(--radius-md);
    }
    
    .browser-header {
        padding: 6px 8px;
        flex-wrap: wrap;
    }
    
    .browser-tabs {
        width: 100%;
        order: 2;
        margin-top: 8px;
    }
    
    .tab {
        max-width: 150px;
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .browser-toolbar {
        flex-wrap: wrap;
        padding: 6px 8px;
    }
    
    .toolbar-center {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }
    
    .address-bar {
        max-width: 100%;
    }
    
    .content-wrapper {
        padding: var(--spacing-lg);
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-toggle {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .browser-window {
        margin: var(--spacing-sm);
    }
    
    .content-wrapper {
        padding: var(--spacing-md);
    }
    
    .page-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-xl);
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4285F4, #34A853);
    transition: left 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.download-btn:hover {
    border-color: #4285F4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
    color: white;
}

.download-btn:hover::before {
    left: 0;
}

.download-btn:hover .download-icon,
.download-btn:hover .download-text {
    position: relative;
    z-index: 1;
}

.download-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.download-btn:hover .download-icon {
    transform: translateY(-2px) scale(1.1);
}

.download-text {
    flex: 1;
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .download-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
}

/* ============================================
   Console Modal Styles
   ============================================ */
.console-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.console-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.console-modal {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    font-family: "Consolas", "Courier New", monospace;
}

.console-modal-overlay.active .console-modal {
    transform: scale(1) translateY(0);
}

.console-modal-header {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-bottom: 2px solid #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-modal-title {
    color: #34A853;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.console-modal-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.console-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.console-modal-content {
    padding: var(--spacing-lg);
    background: #0f0f0f;
    min-height: 200px;
}

.console-modal-output {
    margin-bottom: var(--spacing-lg);
}

.console-line {
    color: #34A853;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    font-family: "Consolas", "Courier New", monospace;
}

.console-prompt {
    color: #87BAC3;
    font-weight: bold;
}

.console-cursor {
    color: #34A853;
    animation: consoleCursorBlink 1s infinite;
    font-weight: bold;
}

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

.console-modal-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.console-btn {
    flex: 1;
    min-width: 150px;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.console-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.4);
    background: linear-gradient(135deg, #3367d6, #2d8f47);
}

.console-btn.secondary {
    background: linear-gradient(135deg, #666, #555);
}

.console-btn.secondary:hover {
    background: linear-gradient(135deg, #777, #666);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
}

@media (max-width: 480px) {
    .console-modal {
        width: 95%;
    }
    
    .console-modal-content {
        padding: var(--spacing-md);
    }
    
    .console-modal-actions {
        flex-direction: column;
    }
    
    .console-btn {
        width: 100%;
    }
}
