/* Hero Section Styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%238a2fed" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow-x: hidden;
    text-align: left;
}

/* Terminal Window */
.terminal-window {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.terminal-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #404040;
}

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27ca3f;
}

.terminal-title {
    color: #888;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    word-break: break-word;
    text-align: left;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .terminal-body {
        padding: 16px;
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .terminal-body {
        padding: 12px;
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

.terminal-line {
    margin-bottom: 8px;
}

.prompt {
    color: #8a2fed;
    font-weight: bold;
}

.command {
    color: #4fc3f7;
}

.terminal-output {
    color: #e0e0e0;
    margin-left: 20px;
    margin-bottom: 8px;
    text-align: left;
}

.terminal-output .skill-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 2px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.terminal-output .file {
    color: #4fc3f7;
    margin-right: 12px;
    word-wrap: break-word;
    word-break: break-word;
    display: inline-block;
    max-width: 100%;
    text-align: left;
}

.typing {
    animation: typing 2s infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
    text-align: left;
}

.code-symbol {
    color: var(--primary-color);
    font-size: 0.8em;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 120px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Code Editor */
.code-editor {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.editor-header {
    background: #2d2d2d;
    padding: 12px 16px;
    border-bottom: 1px solid #404040;
}

.editor-tabs {
    display: flex;
    gap: 8px;
}

.tab {
    padding: 6px 12px;
    background: #404040;
    color: #888;
    border-radius: 6px 6px 0 0;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.tab.active {
    background: #1e1e1e;
    color: white;
}

.editor-content {
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
    word-break: break-word;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .editor-content {
        padding: 16px;
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .editor-content {
        padding: 12px;
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

.code-line {
    display: flex;
    margin-bottom: 4px;
    width: 100%;
    overflow-x: auto;
}

.line-number {
    color: #666;
    width: 30px;
    text-align: right;
    margin-right: 16px;
    user-select: none;
    flex-shrink: 0;
}

.code {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    word-break: break-word;
}

.keyword {
    color: #569cd6;
}

.variable {
    color: #9cdcfe;
}

.property {
    color: #9cdcfe;
}

.string {
    color: #ce9178;
}

.comment {
    color: #6a9955;
}

.cursor {
    position: absolute;
    bottom: 20px;
    left: 62px;
    width: 2px;
    height: 20px;
    background: var(--primary-color);
    animation: blink 1s infinite;
}

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

/* Dark mode hero styles */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

[data-theme="dark"] .terminal-window,
[data-theme="dark"] .code-editor {
    background: #0d1117;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .terminal-header,
[data-theme="dark"] .editor-header {
    background: #161b22;
    border-bottom-color: var(--border-color);
}

/* Mobile Hero Styles */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        /*text-align: center;*/
        gap: 2.5rem;
        padding: 0 15px;
        align-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
		margin-top: 1.5rem;
        text-align: center;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        text-align: center;
        padding: 0 10px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        padding: 16px 24px;
        font-size: 1rem;
        font-weight: 600;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    /* Improve terminal and code editor for mobile */
    .terminal-window,
    .code-editor {
        margin: 0 auto 2rem auto;
        max-width: 100%;
        border-radius: 8px;
    }

    .terminal-body,
    .editor-content {
        padding: 16px;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .terminal-output .skill-tag {
        font-size: 0.8rem;
        padding: 3px 8px;
        margin: 2px;
        display: inline-block;
    }

    .terminal-output .file {
        font-size: 0.9rem;
        margin-right: 8px;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        padding: 0 5px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 5px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 10px;
    }

    .btn {
        width: 100%;
        max-width: 220px;
        padding: 14px 20px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .terminal-window,
    .code-editor {
        border-radius: 8px;
        margin: 0 5px;
        max-width: calc(100% - 10px);
    }

    .terminal-header,
    .editor-header {
        padding: 10px 12px;
        overflow-x: hidden;
    }

    .terminal-title {
        font-size: 0.75rem;
    }

    .terminal-body,
    .editor-content {
        padding: 12px;
        font-size: 0.8rem;
        line-height: 1.4;
    }
}
