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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    line-height: 1.6;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Background removed for performance */

/* Left Panel */
.left-panel {
    width: 300px;
    background: #0f0f0f;
    border-right: 1px solid rgba(128, 128, 128, 0.2);
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

/* Profile Section */
.profile-section {
    padding: 0 40px 40px 40px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    background: #1a1a1a;
    border: 3px solid rgba(128, 128, 128, 0.3);
    position: relative;
}

/* Removed rotating gradient animation for performance */

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 40px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.nav-item {
    display: block;
    padding: 12px 40px;
    text-decoration: none;
    color: #888888;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.nav-item::before {
    content: '>';
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #888888;
}

.nav-item:hover {
    color: #cccccc;
    background: rgba(128, 128, 128, 0.05);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    color: #cccccc;
    background: rgba(128, 128, 128, 0.1);
    border-left-color: #888888;
    font-weight: 600;
}

.nav-item.active::before {
    opacity: 1;
}

/* Right Panel */
.right-panel {
    flex: 1;
    background: #0a0a0a;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.content-area {
    padding: 60px 80px;
    max-width: 100%;
    margin: 0;
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Typography */
h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.2;
    font-family: 'Orbitron', monospace;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: #888888;
}

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

h3 {
    font-size: 18px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 8px;
    font-family: 'Orbitron', monospace;
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Home Section */
.intro-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #888888;
    margin-bottom: 24px;
}

.highlight-red {
    color: #ff0000;
    font-weight: 600;
}

.highlight-yellow {
    color: #ffd700;
    font-weight: 600;
}

.email-contact {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.email-contact a {
    color: #888888;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.email-contact a:hover {
    color: #cccccc;
    text-decoration: underline;
}

/* Terminal Section */
.terminal-section {
    flex-shrink: 0;
    width: 350px;
}

.terminal {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    overflow: hidden;
    width: 100%;
}

.terminal-header {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

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

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

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.terminal-title {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: #888888;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

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

.prompt {
    color: #888888;
}

.command {
    color: #cccccc;
}

.typewriter {
    white-space: nowrap;
}

.terminal-output {
    margin-top: 15px;
}

.terminal-output p {
    color: #cccccc;
    margin-bottom: 5px;
}

/* Cat Photos Section */
.cat-photos {
    margin: 50px 0;
    text-align: center;
}

.cat-photos h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #888888;
}

.cat-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cat-image {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    position: relative;
    display: block;
    cursor: pointer;
}

.cat-image:hover {
    transform: translateY(-4px);
}

.cat-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

/* Section Headers */
.section-header {
    font-size: 24px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 32px;
    font-family: 'Orbitron', monospace;
}

/* Education Section */
.education-section {
    margin-bottom: 80px;
}

.education-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 32px;
    font-family: 'Orbitron', monospace;
}

.education-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
}

.education-content {
    flex: 1;
}

.education-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.education-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.education-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.education-school {
    font-size: 14px;
    color: #888888;
    margin-bottom: 24px;
}

.coursework h4 {
    font-size: 16px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.coursework-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coursework-list span {
    background: rgba(128, 128, 128, 0.1);
    color: #888888;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.experience-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

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

.exp-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exp-company {
    font-size: 21px;
    color: #cccccc;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.exp-date {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-content {
    flex: 1;
}

.exp-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.exp-description {
    color: #888888;
    margin-bottom: 16px;
    line-height: 1.7;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.exp-tech span {
    background: rgba(128, 128, 128, 0.1);
    color: #888888;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

/* Extracurriculars Section */
.extracurriculars-content {
    max-width: 800px;
    margin-top: 120px;
    padding-top: 80px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.extracurriculars-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 48px;
    font-family: 'Orbitron', monospace;
}

.extracurriculars-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #888888;
    margin-bottom: 24px;
}

/* Projects Section */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 10px;
    transition: border-color 0.2s ease;
    position: relative;
}

.project-item:hover {
    border-color: #888888;
}

.project-image {
    width: 200px;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.project-content {
    flex: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.project-header > div {
    flex: 1;
}

.project-header h3 {
    color: #cccccc;
    margin-bottom: 4px;
}

.project-period {
    font-size: 14px;
    color: #888888;
    font-weight: 500;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
}

.project-subtitle {
    color: #888888;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888888;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #cccccc;
    background: rgba(128, 128, 128, 0.2);
    border-color: #888888;
}

.project-link svg {
    flex-shrink: 0;
}

.project-description {
    margin-bottom: 16px;
    color: #888888;
}

.project-details {
    margin: 16px 0;
    padding-left: 20px;
}

.project-details li {
    color: #888888;
    margin-bottom: 8px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.project-tech span {
    background: rgba(128, 128, 128, 0.1);
    color: #888888;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #888888;
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 50%;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #cccccc;
    border-color: #888888;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Contact Section */
.contact-content p {
    margin-bottom: 32px;
    color: #e5e5e5;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.contact-item:hover {
    border-color: #888888;
}

.contact-item label {
    font-weight: 600;
    color: #888888;
    min-width: 80px;
    font-size: 14px;
    font-family: 'Orbitron', monospace;
}

.contact-item a {
    color: #888888;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #cccccc;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .left-panel {
        width: 100%;
        padding: 20px 0;
        border-right: none;
        border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    }

    .profile-section {
        padding: 0 20px 20px 20px;
        text-align: center;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .sidebar-nav {
        padding: 20px 0 0 0;
    }

    .sidebar-nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-item {
        padding: 8px 16px;
        border-left: none;
        border-radius: 20px;
        font-size: 14px;
        border: 1px solid rgba(128, 128, 128, 0.3);
    }

    .nav-item.active {
        background: rgba(128, 128, 128, 0.2);
        border-color: #888888;
    }

    .right-panel {
        overflow-y: visible;
    }

    .content-area {
        padding: 40px 20px;
    }

    .intro-container {
        flex-direction: column;
        gap: 30px;
    }

    .terminal-section {
        width: 100%;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .education-item {
        flex-direction: column;
        gap: 16px;
    }

    .education-logo {
        width: 60px;
        height: 60px;
    }

    .education-section {
        margin-bottom: 60px;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 32px;
    }

    .exp-left {
        gap: 4px;
    }

    .exp-company {
        font-size: 16px;
    }

    .exp-date {
        font-size: 12px;
    }

    .exp-content h3 {
        font-size: 16px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .project-period {
        order: -1;
    }

    .project-item {
        flex-direction: column;
        gap: 16px;
    }

    .project-image {
        width: 100%;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .contact-item label {
        min-width: auto;
    }

    .cat-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 20px 16px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    h1 {
        font-size: 24px;
    }

    .intro-text p,
    p {
        font-size: 15px;
    }

    .cat-photos h3 {
        font-size: 20px;
    }
}