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

:root {
    --bg-color: #0a0e27;
    --bg-secondary: #151932;
    --text-color: #e8eaf6;
    --text-secondary: #9fa8da;
    --border-color: #1e2542;
    --hover-color: #1e2542;
    --accent-color: #2196f3;
    --accent-hover: #1976d2;
    --header-bg: #000000;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: 
        linear-gradient(90deg, 
            transparent 0%,
            #0a0e27 10%, 
            #0a0e27 50%, 
            #0a0e27 90%,
            transparent 100%
        ),
        radial-gradient(circle, #2196f3 1px, transparent 1px),
        #0a0e27;
    background-size: 100% 100%, 20px 20px, 40px 40px, 100% 100%;
    background-position: 0 0, 0 0, 10px 10px, 0 0;
    animation: moveDots 2s ease-in-out infinite;
    min-height: 100vh;
    overflow: hidden;
}

/* Hide scrollbar */
body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes moveDots {
    0% {
        background-position: 0 0, 0 0, 10px 10px, 0 0;
    }
    100% {
        background-position: 0 0, 20px 0, 50px 10px, 0 0;
    }
}

/* Fixed Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 2px solid var(--accent-color);
    padding: 1.5rem 3rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.header-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
    letter-spacing: -0.5px;
}

.header-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.header-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.header-link:hover {
    color: var(--accent-color);
}

.header-link .icon {
    font-size: 1.2rem;
}

/* Sections Container */
.sections-container {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}



/* Full Section */
.full-section {
    position: absolute;
    width: 100%;
    height: calc(100vh - 100px);
    top: 100px;
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 992px) {
    .full-section {
        height: calc(100vh - 120px);
        top: 120px;
    }
}

@media (max-width: 576px) {
    .full-section {
        height: calc(100vh - 100px);
        top: 100px;
    }
}

.full-section::-webkit-scrollbar {
    display: none;
}

.full-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.full-section.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.full-section.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.full-section.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.full-section.slide-in-left {
    transform: translateX(-100%);
}

.full-section.slide-in-right {
    transform: translateX(100%);
}

/* Section Content */
.section-content {
    max-width: 1400px;
    padding: 3rem;    padding-bottom: 5rem;    margin: 0 auto;
    width: calc(100% - 8rem);
    margin-top: 1rem;
}

.section-content.split-view {
    height: auto;
}

@media (max-width: 992px) {
    .section-content {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .section-content {
        margin-top: 4rem;
    }
}
/* Navigation Arrows */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(33, 150, 243, 0.2);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    font-size: 2rem;
    transition: var(--transition);
}

.nav-arrow:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow-left {
    left: 30px;
}

.nav-arrow-right {
    right: 30px;
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-arrow.fading {
    opacity: 0.2;
    pointer-events: none;
}

/* Section Indicators */
.section-indicators-container {
    position: fixed;
    bottom: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.section-indicators {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.3);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: var(--transition);
}

.indicator:hover {
    transform: scale(1.2);
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Typography */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

/* Section 1: Intro, Education, Achievements */
.intro-column {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

@media (max-width: 992px) {
    .intro-column {
        margin-bottom: 2rem;
        padding-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .intro-column {
        margin-bottom: 1.5rem;
        padding-top: 0;
    }
}

.intro-heading {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 5rem;
    }
}
.grid-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-height: 500px;
    overflow-y: auto;
}

#achievements-section {
    max-height: 448px;
}

@media (max-width: 992px) {
    #achievements-section {
        max-height: none;
    }

    .grid-section {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .grid-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .grid-section {
        padding: 1rem;
    }
}


.grid-section::-webkit-scrollbar {
    width: 6px;
}

.grid-section::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.grid-section::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* Education Items */
.education-item {
    margin-bottom: 2rem;
}

.education-item:last-child {
    margin-bottom: 0;
}

.institution {
    color: var(--accent-color);
    font-weight: 500;
}

.date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.description {
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Achievement Items */
.achievement-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-color);
    border-left: 3px solid var(--accent-color);
    border-radius: 6px;
    transition: var(--transition);
}

.achievement-item:hover {
    border-left-width: 5px;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.2);
}

.achievement-item:last-child {
    margin-bottom: 0;
}

/* Skills Section */
.skills-section {
    margin-top: 3rem;
    padding-bottom: 3rem;
}

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

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .skills-section {
        margin-top: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }
}

/* Split View (Experience & Projects) */
.split-view {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    height: calc(100vh - 200px);
    max-height: calc(100vh - 200px);
    align-items: start;
    padding-bottom: 1rem;
}

@media (max-width: 1200px) {
    .split-view {
        grid-template-columns: 350px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .split-view {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        grid-template-rows: auto 1fr;
    }
}

.list-section {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 230px);
    max-height: calc(100vh - 230px);
}

.list-section .section-title {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.list-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    padding-bottom: 3rem;
    height: auto;
    max-height: inherit;
    border: 1px solid var(--border-color);
    overflow: hidden auto;
    flex: 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (max-width: 992px) {
    .list-panel {
        max-height: 250px;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .list-panel {
        max-height: 200px;
        padding: 1rem;
    }
}

.list-panel::-webkit-scrollbar {
    width: 8px;
}

.list-panel::-webkit-scrollbar-track {
    background: transparent;
    margin: 2px 0;
}

.list-panel::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
    border: 1px solid var(--bg-secondary);
}

.list-item {
    padding: 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.list-item:hover {
    border-color: var(--accent-color);
    background: var(--hover-color);
    transform: translateX(5px);
}

.list-item.active {
    border-color: var(--accent-color);
    background: var(--hover-color);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.list-item h3 {
    margin-bottom: 0.5rem;
}

.list-item .company,
.list-item .tech-stack {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.list-item .date {
    font-size: 0.85rem;
}

/* Detail Panel */
.detail-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 3rem;
    padding-bottom: 4rem;
    border: 1px solid var(--border-color);
    overflow: hidden auto;
    position: relative;
    height: calc(100vh - 230px);
    max-height: calc(100vh - 230px);
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.detail-panel::-webkit-scrollbar {
    width: 8px;
}

.detail-panel::-webkit-scrollbar-track {
    background: transparent;
    margin: 2px 0;
}

.detail-panel::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
    border: 1px solid var(--bg-secondary);
}

.detail-content {
    display: none;
}

.detail-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-name {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.period {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.detail-description {
    margin-top: 2rem;
}

.detail-description h3 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.detail-description ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

.detail-description li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

.tech-stack-detail {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.project-link {
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
}

.project-link:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-content {
        padding: 7rem;
    }

    .split-view {
        grid-template-columns: 350px 1fr;
        gap: 2rem;
    }

    .header-name {
        font-size: 1.8rem;
    }

    .header-right {
        gap: 1.5rem;
    }

    .header-link span:not(.icon) {
        display: none;
    }
}

@media (max-width: 992px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 5%;
    }

    .split-view {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        grid-template-rows: auto 1fr;
    }

    .list-section {
        height: auto;
    }

    .list-panel {
        max-height: 250px;
    }

    .detail-panel {
        max-height: calc(100vh - 450px);
        min-height: 300px;
    }

    .grid-section {
        max-height: none;
        overflow-y: visible;
    }

    .section-content {
        padding: 2rem 5rem;
        width: calc(100% - 10rem);
    }

    .main-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 2rem;
    }

    .full-section {
        height: calc(100vh - 120px);
        top: 120px;
    }

    .header-right {
        gap: 1rem;
    }

    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .nav-arrow-left {
        left: 15px;
    }

    .nav-arrow-right {
        right: 15px;
    }
}

@media (max-width: 768px) {
    
    .section-content {
        padding: 1.5rem 4rem;
        width: calc(100% - 8rem);
    }

    .grid-section {
        padding: 1.5rem;
    }

    .list-panel,
    .detail-panel {
        padding: 1.5rem;
    }

    .list-panel {
        max-height: 220px;
    }

    .detail-panel {
        max-height: calc(100vh - 420px);
        min-height: 250px;
    }

    .header-name {
        font-size: 1.5rem;
    }

    .header-title {
        font-size: 0.9rem;
    }

    .section-indicators {
        gap: 15px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .header-link span:not(.icon) {
        display: none;
    }

    .header-right {
        gap: 0.8rem;
    }

    .intro-heading {
        font-size: 1.6rem;
    }

    .intro-description {
        font-size: 1rem;
    }

    .intro-column {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    
    .section-content {
        padding: 1rem 3.5rem;
        width: calc(100% - 7rem);
    }

    .grid-section {
        padding: 1rem;
    }

    .list-panel,
    .detail-panel {
        padding: 1rem;
    }

    .list-panel {
        max-height: 180px;
    }

    .detail-panel {
        max-height: calc(100vh - 380px);
        min-height: 200px;
    }

    .header-name {
        font-size: 1.3rem;
    }

    .header-title {
        font-size: 0.8rem;
    }

    .main-header {
        padding: 1rem 1.5rem;
    }

    .full-section {
        top: 90px;
        height: calc(100vh - 90px);
    }

    .section-indicators {
        gap: 12px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .section-indicators-container {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 15px;
    }

    .intro-heading {
        font-size: 1.4rem;
    }

    .intro-description {
        font-size: 0.95rem;
    }

    .intro-column {
        margin-bottom: 1.5rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .nav-arrow-left {
        left: 10px;
    }

    .nav-arrow-right {
        right: 10px;
    }

    .section-indicators-container {
        bottom: 1rem;
        padding: 0.5rem 1rem;
    }
}
