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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 3rem;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    padding: 1.5rem 2rem;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid #333;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem 2rem 2rem;
}

.sidebar.open {
    right: 0;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.sidebar a:last-child {
    border-bottom: none;
}

.sidebar a:hover {
    color: #ccc;
    padding-left: 1rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Section base styles */
section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    padding-top: 4rem;
    margin: 2rem 0; /* Add consistent spacing between sections */
    /* Account for fixed nav */
    opacity: 1;
    transform: none;
}

/* Commented out section.visible class to avoid conflicts */
/* section.visible {
    opacity: 1;
    transform: translateY(0);
} */

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

/* Intro Section */
.intro {
    text-align: center;
    min-height: 100vh;
}

.intro h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.intro .tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
    margin-bottom: 2rem;
    border: none;
    animation: fadeInUp 1s ease 1s forwards;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}



/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.about p {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.skill-item {
    padding: 0.8rem;
    border: 1px solid #fff;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 10px;
}

.skill-item i {
    font-size: 1rem;
}

.skill-item:hover {
    background-color: #fff;
    color: #000;
}

/* Experience Section */
.experience-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.experience h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

.experience-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.experience-item:last-child {
    border-bottom: none;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 14px;
    font-weight: 500;
}

.job-company {
    font-size: 12px;
    font-weight: 400;
}

.job-period {
    font-size: 12px;
    opacity: 0.7;
}

.job-description {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 1rem;
}

/* Projects Section */
.projects-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

.project-table {
    border-collapse: collapse;
    width: 100%;
}

.project-table th {
    font-size: 10px;
    text-align: left;
    border-bottom: 1px solid white;
    padding-bottom: 5px;
    position: relative;
}

.project-table td {
    font-size: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dashed white;
    position: relative;
}

/* Remove border from last row */
.project-table tr:last-child td {
    border-bottom: none;
}

.project-row {
    position: relative;
    cursor: pointer;
}

.project-table td a {
    text-decoration: none;
    color: rgb(3, 94, 239);
}

.project-table tr:hover {
    color: black;
    background-color: #ccc;
}

.hover-card {
    position: absolute;
    background: #fff;
    color: black;
    padding: 10px 10px;
    border-radius: 0px;
    font-size: 10px;
    z-index: 1000;
    max-width: 220px;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    text-align: left;
    white-space: normal;
    word-wrap: wrap;
    hyphens: none;
    line-height: 1.6;
        visibility: hidden;}

.hover-card.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid #fff;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.project-links a:hover {
    opacity: 0.7;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact p {
    font-size: 12px;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-links a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.contact-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.contact-links a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    section {
        padding: 0 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects h2 {
        margin-top: 2rem;
    }

    .experience h2 {
        margin-top: 4rem;
        margin-bottom: 1rem;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-row td:last-child {
        display: none;
    }

       .project-row th:last-child {
        display: none;
    }


    .contact-links {
        gap: 2rem;
    }
}


