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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #ccd6f6;
    background-color: #0a192f;
    font-size: 16px;
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: #0a192f;
    padding: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ccd6f6;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.title {
    font-size: 0.95rem;
    font-weight: 400;
    color: #8892b0;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.description {
    font-size: 0.9rem;
    color: #8892b0;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Sidebar Education */
.sidebar-education {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-edu-degree {
    font-size: 0.85rem;
    color: #ccd6f6;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.sidebar-edu-school {
    font-size: 0.85rem;
    color: #64ffda;
    margin-bottom: 0.2rem;
}

.sidebar-edu-detail {
    font-size: 0.78rem;
    color: #8892b0;
    line-height: 1.4;
}

/* Navigation */
.nav {
    margin-bottom: 2rem;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    color: #8892b0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    width: 0;
    height: 1px;
    background-color: #64ffda;
    margin-right: 1rem;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #64ffda;
}

.nav-link:hover::before {
    width: 20px;
}

.nav-link.active {
    color: #64ffda;
}

.nav-link.active::before {
    width: 20px;
}

/* Social Links */
.social-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.social-link {
    color: #8892b0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #64ffda;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 40px;
    background-color: #0a192f;
    max-width: 800px;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #ccd6f6;
    margin-bottom: 4rem;
    white-space: nowrap;
}

.section-number {
    color: #64ffda;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.section-title::after {
    content: '';
    height: 1px;
    background-color: #233554;
    width: 100%;
    margin-left: 1rem;
}

/* About Section */
.about-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    color: #8892b0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
    list-style: none;
}

.skills-list li {
    color: #8892b0;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.skills-list li::before {
    content: '▹';
    color: #64ffda;
    position: absolute;
    left: 0;
}

/* Experience Section */
.experience-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin: 2rem auto 0;
    max-width: 700px;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #233554;
}

.tab-button {
    background: none;
    border: none;
    color: #8892b0;
    padding: 1rem 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    font-size: 0.9rem;
}

.tab-button:hover {
    color: #64ffda;
    background-color: rgba(100, 255, 218, 0.1);
}

.tab-button.active {
    color: #64ffda;
    border-left-color: #64ffda;
    background-color: rgba(100, 255, 218, 0.1);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: #ccd6f6;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.company {
    color: #64ffda;
}

.duration {
    color: #8892b0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    color: #8892b0;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.experience-list li::before {
    content: '▹';
    color: #64ffda;
    position: absolute;
    left: 0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem auto 0;
    max-width: 700px;
}

.project-item {
    background-color: #112240;
    border-radius: 6px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #64ffda, #1e3a8a);
}

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

.project-title {
    color: #ccd6f6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.project-link {
    color: #8892b0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #64ffda;
}

.project-description {
    color: #8892b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.project-tech li {
    color: #64ffda;
    font-size: 0.8rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background-color: rgba(100, 255, 218, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    color: #ccd6f6;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-description {
    color: #8892b0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    border: 1px solid #64ffda;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: transparent;
    color: #64ffda;
    border-color: #64ffda;
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        padding: 0 20px;
    }

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

    .experience-tabs {
        flex-direction: row;
        border-left: none;
        border-bottom: 1px solid #233554;
        overflow-x: auto;
    }

    .tab-button {
        border-left: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        padding: 1rem;
    }

    .tab-button.active {
        border-left: none;
        border-bottom-color: #64ffda;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation Toggle Button */
.nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    background: #0a192f;
    border: none;
    color: #64ffda;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    display: none;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(100, 255, 218, 0.1);
}

.nav-toggle:focus {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating Resume Button */
.resume-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #64ffda;
    color: #0a192f;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 600;
    font-size: 0.95rem;
}

.resume-fab i {
    font-size: 1.3rem;
}

.resume-fab span {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.resume-fab:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.5);
}

.resume-fab:focus {
    outline: 2px solid #64ffda;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .resume-fab {
        bottom: 20px;
        right: 20px;
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
    }
    
    .resume-fab i {
        font-size: 1.2rem;
    }
    
    .resume-fab span {
        font-size: 0.875rem;
    }
}