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

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --code-bg: #f5f5f5;
    --shadow-color: #000000;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --border-color: #e0e0e0;
    --code-bg: #2a2a2a;
    --shadow-color: #e0e0e0;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
}

.lang-toggle:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: scale(1.1);
}

.lang-toggle:active {
    transform: scale(0.95);
}

.theme-toggle:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: rotate(180deg);
}

.theme-toggle:active {
    transform: rotate(180deg) scale(0.95);
}

/* Navigation */
.nav {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
    opacity: 0.7;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link.active {
    opacity: 1;
    font-weight: bold;
}

.nav-separator {
    opacity: 0.5;
}

/* Container */
.container {
    max-width: 800px;
    width: 100%;
    padding: 40px;
    border: 2px solid var(--border-color);
    box-shadow: 8px 8px 0px var(--shadow-color);
    background-color: var(--bg-color);
    margin: 20px auto;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header */
.header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.terminal-header {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.name {
    font-size: 3rem;
    font-weight: bold;
    margin: 10px 0;
    letter-spacing: -2px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-top: 10px;
}

.prompt {
    color: var(--text-color);
    font-weight: bold;
    margin-right: 5px;
}

/* Sections */
.section {
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-in;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.content {
    padding-left: 20px;
    font-size: 1rem;
}

.content p {
    margin-bottom: 15px;
}

/* Code Block */
.code-block {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin: 10px 0;
    overflow-x: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interests List */
.interests-list {
    list-style: none;
    padding: 0;
}

.interests-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.bullet {
    margin-right: 10px;
    font-weight: bold;
}

/* Contact Grid */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background-color: var(--bg-color);
}

.contact-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateX(5px);
}

.command {
    font-weight: bold;
    min-width: 100px;
}

.arrow {
    margin: 0 10px;
}

.value {
    opacity: 0.8;
}

.contact-link:hover .value,
.contact-link:hover .arrow {
    opacity: 1;
}

/* Footer */
.footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    opacity: 0.7;
    transition: border-color 0.3s ease;
}

.cursor {
    animation: blink 1s infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .lang-toggle {
        top: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 12px;
    }

    .container {
        padding: 25px;
        box-shadow: 4px 4px 0px var(--shadow-color);
        margin: 10px;
    }

    .name {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .content {
        padding-left: 10px;
        font-size: 0.95rem;
    }

    .command {
        min-width: 80px;
        font-size: 0.9rem;
    }

    .code-block {
        padding: 15px;
    }

    .code-block code {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lang-toggle {
        top: 60px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 11px;
    }

    .container {
        padding: 20px;
        border: 1px solid var(--border-color);
    }

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .contact-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .arrow {
        margin: 0;
    }
}

/* Projects Page */
.project-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-description {
    margin-bottom: 15px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    padding: 4px 10px;
    font-size: 0.85rem;
    background-color: var(--code-bg);
    border-radius: 3px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.tech-tag:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.project-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 2px 2px 0px var(--shadow-color);
}

.project-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px) translateX(-2px);
    box-shadow: 4px 4px 0px var(--shadow-color);
}

.link-separator {
    opacity: 0.3;
    font-size: 0.8rem;
}

/* Career Page */
.career-item {
    margin-bottom: 30px;
}

.career-header {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.career-title {
    font-size: 1.4rem;
    margin: 0;
}

.career-company {
    font-size: 1.1rem;
    opacity: 0.8;
}

.career-period {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-left: auto;
}

.career-description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.career-highlights {
    margin-bottom: 20px;
}

.highlights-title {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

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

.highlights-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.highlights-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    opacity: 0.7;
}

.career-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .nav {
        font-size: 0.9rem;
    }

    .career-header {
        flex-direction: column;
        gap: 5px;
    }

    .career-period {
        margin-left: 0;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }

    .theme-toggle {
        display: none;
    }

    .lang-toggle {
        display: none;
    }

    .nav {
        display: none;
    }

    .container {
        border: 1px solid #000000;
        box-shadow: none;
    }

    .contact-link {
        border: 1px solid #000000;
    }
}

