/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Code Pro', 'Courier New', monospace;
}

body {
    background: #0a0a0a;
    color: #00ff00;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 999;
}

@media (max-width: 768px) {
    .career-timeline::before {
        left: 20px !important; /* Override desktop alignment */
    }
    .career-item {
        width: calc(100% - 40px) !important;
        margin-left: 40px !important;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 20, 0, 0.9);
    padding: 1rem;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: #00ff00;
    text-decoration: none;
    font-size: 1.2rem;
    transition: text-shadow 0.3s;
}

.left-item {
    margin-right: auto;
    font-weight: bold;
  }

/* TODO: make more responsive*/
nav a:hover {
    text-shadow: 0 0 10px #00ff00;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 5rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Header */
.name-header {
    font-family: 'Space Mono', monospace;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px #00ff00;
    animation: glitch 2s infinite;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.indented-list li {
    margin-left: 40px;
    margin-bottom: 15px;
}

.date {
    margin-left: 40px;
    display: flex;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Education Section */
.education-institution {
    margin: 4rem 0;
    padding: 2rem;
    border: 2px solid #00ff00;
    background: rgba(0, 20, 0, 0.8);
}

.school-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.school-logo {
    width: 100px;
    height: 100px;
    border: 2px solid #00ff00;
    padding: 0.5rem;
}

.academic-years {
    display: grid;
    gap: 2rem;
}

.year-details {
    padding: 1.5rem;
    border: 1px solid #00ff00;
    margin: 1rem 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.course-item {
    padding: 0.5rem 1rem;
    border: 1px dashed #00ff00;
    position: relative;
    transition: all 0.3s;
}

.course-item:hover {
    background: rgba(0, 255, 0, 0.1);
}

.education-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    height: 200px;
    border: 2px solid #00ff00;
    transition: transform 0.3s;
    background: #001000;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Career Timeline */
.career-timeline {
    position: relative;
    padding: 2rem 0;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #00ff00;
}

.career-item {
    position: relative;
    width: 50%;
    padding: 1.5rem;
    margin: 2rem 0;
    background: rgba(0, 30, 0, 0.8);
    border: 1px solid #00ff00;
}

.career-item:nth-child(odd) {
    left: 0%;
}

.career-item:nth-child(even) {
    left: 50%;
}

.company-logo {
    width: 80px;
    height: 80px;
    border: 2px solid #00ff00;
    margin-bottom: 1rem;
}

.career-company {
    margin-bottom: 15px;
}

/* Projects */
.project-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin: 2rem 0;
    border: 2px solid #00ff00;
    padding: 1.5rem;
    transition: all 0.3s;
}

.project-card:hover {
    background: rgba(0, 30, 0, 0.8);
}

.project-media {
    display: grid;
    gap: 1rem;
}

.project-screenshot {
    height: 200px;
    border: 2px solid #00ff00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .name-header {
        font-size: 2.5rem;
    }

    .career-timeline::before {
        left: 20px;
    }

    .career-item {
        width: 100%;
        left: 0 !important;
        margin-left: 2rem;
    }

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

    .school-header {
        flex-direction: column;
        text-align: center;
    }

    .course-list {
        flex-direction: column;
    }
}

.contacts {
    text-align: center;
}

a:link {
    color: #00ff00;
    background-color: transparent;
    text-decoration: none;
}

a:visited {
    color: #00ff00;
    background-color: transparent;
    text-decoration: none;
}

a:hover {
    color: #8dff8d;
    background-color: transparent;
    text-decoration: underline;
}