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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 400;
    font-size: 17px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007aff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 122, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1d1d1f 0%, #007aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 400;
    color: #1d1d1f;
    margin-bottom: 30px;
    line-height: 1.3;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 21px;
    color: #6e6e73;
    margin-bottom: 40px;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #007aff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #007aff;
    border: 2px solid #007aff;
}

.btn-secondary:hover {
    background: #007aff;
    color: white;
    transform: translateY(-2px);
}

.btn[download] {
    position: relative;
    padding-left: 50px;
}

.btn[download]::before {
    content: '⬇️';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.code-animation {
    background: #1d1d1f;
    border-radius: 20px;
    padding: 50px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 20px;
    line-height: 1.8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.8s both;
    min-width: 400px;
}

.code-line {
    margin-bottom: 10px;
    opacity: 0;
    animation: typeIn 0.5s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 1s; }
.code-line:nth-child(2) { animation-delay: 1.5s; }
.code-line:nth-child(3) { animation-delay: 2s; }
.code-line:nth-child(4) { animation-delay: 2.5s; }

.code-keyword { color: #ff6b6b; }
.code-variable { color: #4ecdc4; }
.code-operator { color: #ffe66d; }
.code-string { color: #95e1d3; }
.code-function { color: #a8e6cf; }
.code-bracket { color: #ffe66d; }
.code-indent { color: #6e6e73; }

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #1d1d1f;
}

/* Overview Section */
.overview {
    background: #f5f5f7;
}

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

.overview-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.overview-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.overview-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.overview-item p {
    color: #6e6e73;
    font-size: 17px;
    line-height: 1.5;
}

/* Skills Section */
.skills {
    background: white;
}

.skills-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.human-skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.skills-list {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.skills-list h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
    text-align: center;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    opacity: 1;
    visibility: visible;
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animation removed to prevent interference with connection lines */

.skill-item.skill-active {
    transform: translateX(10px);
    box-shadow: 0 12px 35px rgba(0, 122, 255, 0.3);
    background: rgba(0, 122, 255, 0.05);
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Ensure skill items never disappear */
.skill-item,
.skill-item:hover,
.skill-item:focus,
.skill-item:active,
.skill-item.skill-active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.skill-name {
    font-weight: 600;
    color: #1d1d1f;
    min-width: 100px;
}

.skill-years {
    font-size: 14px;
    color: #6e6e73;
    font-weight: 500;
    min-width: 60px;
}


.book-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.book-outline {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.book {
    transition: all 0.3s ease;
    cursor: pointer;
}

.book:hover {
    fill: #007aff !important;
    stroke: #0056b3 !important;
    stroke-width: 3 !important;
    filter: drop-shadow(0 5px 15px rgba(0, 122, 255, 0.3));
}

.book-title {
    font-family: Arial, sans-serif;
    font-size: 8px;
    fill: #6c757d;
    pointer-events: none;
    transition: fill 0.3s ease;
}

.book-years {
    font-family: Arial, sans-serif;
    font-size: 7px;
    fill: #6c757d;
    pointer-events: none;
    transition: fill 0.3s ease;
}

.book:hover + .book-title {
    fill: #ffffff !important;
}

.book:hover + .book-title + .book-years {
    fill: #ffffff !important;
}

.body-outline {
    transition: all 0.3s ease;
}


.connection-line {
    transition: all 0.3s ease;
}


.skill-category h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1d1d1f;
    text-align: center;
}

.languages-grid, .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.language-item, .tool-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-item:hover, .tool-item:hover {
    transform: translateY(-5px);
    border-color: #007aff;
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.15);
}

.language-item::before, .tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007aff, #00d4ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.language-item:hover::before, .tool-item:hover::before {
    transform: scaleX(1);
}

.language-name, .tool-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.proficiency {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Years-based proficiency coloring (1-5 years with positive colors only) */
.proficiency[data-years="1"] {
    background: #e8f5e8;
    color: #2d5a2d;
}

.proficiency[data-years="2"] {
    background: #d4edda;
    color: #155724;
}

.proficiency[data-years="3"] {
    background: #c3e6c3;
    color: #0f5132;
}

.proficiency[data-years="4"] {
    background: #a8e6a8;
    color: #0d4f1c;
}

.proficiency[data-years="5"] {
    background: #8fdc8f;
    color: #0a3d0a;
}


/* Experience Section */
.experience {
    background: #f5f5f7;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #007aff;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #007aff;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #007aff;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.timeline-content h4 {
    font-size: 17px;
    color: #007aff;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    color: #6e6e73;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: white;
}

.projects-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6e6e73;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    text-align: center;
    z-index: 2;
    position: relative;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 24px;
    background: #007aff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.github-link:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.github-icon {
    width: 20px;
    height: 20px;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.project-content p {
    color: #6e6e73;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #f5f5f7;
    color: #007aff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.project-link.github-link {
    background: #f8f9fa;
    color: #1d1d1f;
    border: 2px solid #e9ecef;
}

.project-link.github-link:hover {
    background: #007aff;
    color: white;
    border-color: #007aff;
    transform: translateY(-2px);
}

.project-link.demo-link {
    background: #007aff;
    color: white;
}

.project-link.demo-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.link-icon {
    width: 16px;
    height: 16px;
}

.github-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
}

.github-cta p {
    font-size: 20px;
    color: #6e6e73;
    margin-bottom: 30px;
}

.github-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding: 15px 30px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Contact Section */
.contact {
    background: #1d1d1f;
    color: white;
    text-align: center;
}

.contact .section-title {
    color: white;
}

.contact-description {
    font-size: 21px;
    color: #a1a1a6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: #a1a1a6;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 17px;
    color: white;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #1d1d1f;
    color: #a1a1a6;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #333;
}

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

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .code-animation {
        padding: 30px;
        font-size: 16px;
        margin-top: 40px;
        min-width: 300px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .human-skills-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills-list {
        order: 2;
    }
    
    .book-stack {
        order: 1;
    }
    
    .book-outline {
        max-width: 250px;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .skill-name, .skill-years {
        min-width: auto;
    }
    
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 5px;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .github-cta {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .overview-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

