:root
{
    --primary-color: #c3b091;
    --secondary-color: #f9f9f9;
    --accent-color: #ffefd5;
    --text-color: #333;
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body
{
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #404040;
    background-color: #404040;
    overflow-x: hidden;
}
section
{
    border-bottom: 1px solid;
    border-image: linear-gradient(45deg, #c3b091, #ffefd5) 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
img
{
    width:80%;
    height:100%;
    border-radius: 2.5%;
}
nav {
    background-color: #404040;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid;
    border-image: linear-gradient(45deg, #c3b091, #ffefd5) 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo
{
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color:  var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover
{
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

@media all and (max-width: 1200px)
{
    .nav-links {
        position: absolute;
        right: 0;
        height: 0;
        top: 60px;
        background-color: #404040;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        overflow: hidden;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
        height: auto;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }
}

header
{
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #404040;
    padding: 100px 0 70px;
    text-align: center;
}


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

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

section {
    padding: 50px 0;
}

section:nth-child(even) {
    background-color: #404040;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #404040;
    position: relative;
    font-size: 2rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.about-text {
    color: white;
    flex: 1;
    min-width: 300px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.skill-tag {
    background-color: var(--primary-color);
    color: #404040;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.experience-item, .education-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-org {
    font-style: italic;
    margin-bottom: 10px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.project-img {
    height: 200px;
    background-color: #404040;
    overflow: hidden;
}

.project-info {
    padding: 20px;
}

.project-title {
    margin-bottom: 10px;
    color:#404040;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.project-tag {
    background-color: #404040;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.contact-info {
    text-align: center;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color:#404040;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #404040;
}

footer {
    background-color: #404040;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-text {
    font-size: 0.9rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: #404040;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.card-image {
    height: 200px;
    background: linear-gradient(45deg, #c3b091, #ffefd5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #404040;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.blog-card:hover .card-image::before {
    opacity: 1;
    animation: shine 0.5s ease;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.card-content p {
    color: #666;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}

@media all and (max-width: 1400px){
    header {
        padding: 120px 0 50px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #c3b091, #ffefd5);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.motto
{
    background-image: url("../img/head.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: #000000;
    font-weight: bold;
    text-align: center;
    position: relative;
}

.motto-content {
    font-size: 1.8rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

.about {
    background: #404040;
}

.about-content
{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: center;
}

.me-image
{
    width: 500px;
    height: 500px;
    background-image: url("../img/main.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}


@keyframes shine
{
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3498db, #e74c3c);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: white;
}

.timeline-year
{
    background: linear-gradient(45deg, #c3b091, #ffefd5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-description
{
    line-height: 1.6;
}

.timeline-dot
{
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #c3b091, #ffefd5);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

footer {
    background: #c3b091;
    color: #404040;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-item:hover
{
    transform: translateY(-3px);
}

@media all and (max-width: 800px)
{
    .chef-name
    {
        font-size: 2rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .me-image {
        width: 300px;
        height: 300px;
        font-size: 4rem;
    }

    .experience-timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-content::before {
        left: -30px !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }

    .timeline-dot {
        left: 20px;
    }

    .motto::before,
    .motto::after {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media all and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .motto-content {
        font-size: 1.4rem;
    }
}