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

body {
    font-family: "Courier New", monospace;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.full-width {
    max-width: 1600px;
    width: 90%;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: normal;
}

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

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5rem;
    display: inline-block;
}

p {
    margin-bottom: 1rem;
}

/* Terminal effect */
.terminal {
    position: relative;
    padding: 20px;
    border: 1px solid #000;
    margin-bottom: 20px;
    overflow: hidden;
}

.wide-terminal {
    width: 100%;
}

.terminal-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 10px;
    background: #f0f0f0;
    border-bottom: 1px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-buttons {
    display: flex;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #000;
    margin-right: 5px;
}

.terminal-content {
    margin-top: 30px;
    font-family: "Courier New", monospace;
    width: 100%;
}

.command-line {
    display: flex;
    margin-bottom: 10px;
}

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

.blinking-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #000;
    margin-left: 5px;
    animation: blink 1s infinite;
}

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

.hidden {
    display: none;
}

/* Navigation */
nav {
    padding: 20px 0;
    border-bottom: 1px solid #000;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-end;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: #000;
    padding: 5px 0;
    position: relative;
    font-weight: bold;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Sections */
section {
    padding: 20px 0;
    margin-bottom: 10px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* About */
.about-container {
    display: flex;
    flex-direction: column;
}

.about-text {
    max-width: 700px;
    line-height: 1.8;
}

/* Experience */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 1px;
    background-color: #000;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -0.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(30px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border: 1px solid #000;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    border: 1px solid #000;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 2px 2px 0 #000;
}

.timeline-date {
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-company {
    font-style: italic;
    margin-bottom: 10px;
}

.timeline-desc {
    height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.timeline-content.active .timeline-desc {
    height: auto;
    opacity: 1;
    margin-top: 10px;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.skill-item {
    border: 1px solid #000;
    padding: 20px;
    cursor: default;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
    box-shadow: 3px 3px 0 #000;
}

.skill-name {
    font-weight: bold;
    margin-bottom: 10px;
}

.skill-level {
    width: 100%;
    height: 5px;
    background-color: #eee;
    position: relative;
}

.skill-level-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #000;
    width: 0;
    transition: width 1s ease;
}

/* Contact */
.contact-form {
    width: 100%;
}

.form-control {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    font-family: "Courier New", monospace;
    resize: none;
    background: transparent;
}

input:focus,
textarea:focus {
    outline: none;
    box-shadow: 1px 1px 0 #000;
}

button {
    background: transparent;
    border: 1px solid #000;
    padding: 10px 20px;
    cursor: pointer;
    font-family: "Courier New", monospace;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover {
    background: #000;
    color: #fff;
}

/* Contact links */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    padding: 10px 20px;
    border: 1px solid #000;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 2px 2px 0 #000;
}

.contact-link i {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Footer */
footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #000;
}

/* Mouse trailer */
.mouse-trailer {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px dashed #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.1s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }

    .timeline-item::after {
        left: 23px !important;
    }

    nav ul {
        justify-content: center;
    }

    nav li {
        margin: 0 15px;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
