/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FAFAF5;
    color: #1F2933;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #F97316;
}

.navbar-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1F2933;
}

.navbar-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #616E7C;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #F97316;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #F97316;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2933;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #616E7C;
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HOME SECTION ===== */
.home-section {
    padding-top: 150px;
    text-align: center;
    position: relative;
}

.home-content {
    max-width: 800px;
    margin: 0 auto;
}

.home-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1F2933;
    margin-bottom: 25px;
    line-height: 1.2;
    text-align: center;
}

.home-subtitle {
    font-size: 1.25rem;
    color: #616E7C;
    margin-bottom: 30px;
    line-height: 1.8;
    text-align: center;
}

.home-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.home-social-fixed {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.home-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1F2933;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    color: #F97316;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

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

.home-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

.btn-primary {
    background-color: #F97316;
    color: #FFFFFF;
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #F97316;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #EA580C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background-color: #F97316;
    color: #FFFFFF;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #EA580C;
}

.btn-outline {
    background-color: transparent;
    color: #1F2933;
    border: 2px solid #1F2933;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background-color: #1F2933;
    color: #FFFFFF;
}

.btn-outline svg {
    width: 16px;
    height: 16px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 50px;
}

.about-block-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1F2933;
    margin-bottom: 20px;
}

.about-text {
    font-size: 1.1rem;
    color: #616E7C;
    line-height: 1.8;
    margin-bottom: 30px;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.experience-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.experience-date {
    font-weight: 600;
    color: #F97316;
    min-width: 100px;
}

.experience-separator {
    color: #616E7C;
}

.experience-role {
    font-weight: 600;
    color: #1F2933;
}

.experience-company {
    color: #616E7C;
    margin-left: auto;
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
}

.experience-description {
    font-size: 0.95rem;
    color: #616E7C;
    line-height: 1.6;
    margin-top: 5px;
}

.education-item {
    padding: 15px 20px;
}

.education-item .experience-header {
    flex-wrap: nowrap;
    align-items: baseline;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 50px;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-content {
    padding-left: 10px;
}

.project-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    display: block;
    width: 100%;
    height: auto;
}

.project-image--portrait {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    margin: 0 auto;
}

.project-content {
    padding: 0;
}

.project-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1F2933;
    margin-bottom: 20px;
}

.project-description {
    font-size: 1.1rem;
    color: #616E7C;
    line-height: 1.8;
    margin-bottom: 25px;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 10px;
}

.skill-item i {
    font-size: 48px;
}

.skill-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.skill-item svg {
    color: #F97316;
    margin-bottom: 10px;
}

.skill-text {
    font-size: 1rem;
    font-weight: 500;
    color: #1F2933;
    text-align: center;
}

.skill-item span:not(.skill-text) {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1F2933;
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #111827;
    color: #E5E7EB;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    position: relative;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
}

.footer-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 1rem;
    color: #E5E7EB;
    line-height: 1.7;
    max-width: 500px;
}

.footer-right-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-social-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-align: left;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.footer-social .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: #E5E7EB;
}

.footer-social .social-icon:hover {
    background-color: #F97316;
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-copyright {
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .home-social-fixed {
        display: none;
    }

    .home-social-wrapper {
        justify-content: center;
    }

    .education-item .experience-header {
        flex-wrap: wrap;
    }

    .education-item .experience-company {
        margin-left: 0;
        flex-basis: 100%;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-image-wrapper {
        height: auto;
        background-color: #E5E7EB;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .project-image--portrait {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .project-links {
        justify-content: center;
    }

    .project-content {
        order: 2;
    }

    .navbar-content {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-menu {
        gap: 20px;
    }

    .home-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .footer-right {
        justify-content: flex-start;
    }

    .footer-social-title {
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .experience-item {
        flex-direction: column;
        gap: 5px;
    }

    .experience-company {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .home-title {
        font-size: 2rem;
    }

    .section {
        padding: 80px 0;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}