body {
    background: linear-gradient(135deg, #f7f3fa 0%, #e8e0f0 100%);
    color: #333333;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

header {
    background-color: #2D3142; 
    color: #ffffff; 
    background-image: url(images/logof.png), linear-gradient(135deg, #2D3142 0%, #4F5D75 100%);
    background-position: left center;
    background-repeat: no-repeat, repeat;
    background-size: 100px, cover;
    line-height: 650%; 
    text-indent: 25px;
    text-shadow: 2px 2px 4px #00000000;
    border-bottom: 5px solid #EF8354;
    box-shadow: 0 4px 8px #00000000;
    padding-left: 220px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

nav {
    background: linear-gradient(180deg, #4F5D75 0%, #6B7A8F 100%);
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 0 25px 25px 0;
    box-shadow: 0 2px 4px #ef835400;
    float: left;
    width: 200px;
    margin-top: 25px;
    margin-right: 20px;
    margin-bottom: 25px;
}

nav b {
    display: flex;
    flex-direction: column;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    padding: 0.75em 1em;
    margin: 0.25em 0;
    border-radius: 25px;
    background-color: #ffffff00;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px #00000000;
    display: block;
    text-align: center;
}

nav a:hover {
    background-color: #EF8354;
    transform: translateY(-5px);
    color: #2D3142;
}

main {
    padding: 2.5em;
    max-width: 1200px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px #2d314200;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    overflow: hidden;
    margin-left: 240px;
}

footer {
    background: linear-gradient(135deg, #4F5D75 0%, #2D3142 100%);
    text-align: center;
    font-size: 85%;
    padding: 1.5em;
    border-top: 4px solid #EF8354;
    color: #ffffff;
    text-shadow: 1px 1px 2px #00000000;
    box-shadow: 0 -4px 8px #00000000;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 1px;
    font-weight: 700;
}

h2 {
    color: #2D3142;
    font-family: Georgia, 'Times New Roman', Times, serif;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #EF8354;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px #ef835433;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

h3 {
    color: #4F5D75;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.6em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    padding-left: 0.5em;
    border-left: 5px solid #EF8354;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

ul {
    list-style-type: square;
    background: linear-gradient(135deg, #ffffff 0%, #f8f4fc 100%);
    padding: 1.5em 2.5em;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(45, 49, 66, 0.1);
    border: 1px solid rgba(239, 131, 84, 0.3);
    margin: 1.5em 0;
    list-style-position: inside;
}

li {
    line-height: 1.8;
    margin-bottom: 0.5em;
    color: #2D3142;
    font-size: 1.1em;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.projects-grid, .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card, .skill-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f4fc 100%);
    border-radius: 20px;
    padding: 1.5em;
    box-shadow: 0 5px 15px rgba(45, 49, 66, 0.1);
    border: 1px solid rgba(255, 128, 0, 0.3);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 20px 0;
    text-align: center;
}

@media (max-width: 768px) {
    nav {
        float: none;
        width: auto;
        margin: 15px;
        border-radius: 25px;
    }
    
    nav b {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        display: inline-block;
        margin: 5px;
        padding: 0.5em 1em;
    }
    
    main {
        margin: 15px;
        clear: both;
    }
    
    header {
        padding-left: 120px;
        background-size: 60px, cover;
        line-height: 400%;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    header {
        padding-left: 80px;
        background-size: 50px, cover;
        text-indent: 15px;
        line-height: 300%;
    }
    
    h1 {
        font-size: 1.4em;
    }
    
    main {
        padding: 1em;
    }
    
    nav a {
        padding: 0.5em 0.8em;
        font-size: 0.9em;
    }
    
    ul, ol {
        padding: 1em 1.5em;
    }
    
    li {
        font-size: 1em;
    }
}

form{
    display: flex;
    flex-flow:column nowrap;
}

table{
    table-layout: auto;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    border-radius: 20px;
    border: 1px solid rgba(255, 128, 0, 0.3);}

td{
    padding: 5px;
}

th{
    text-align: center;
    border-bottom:  dotted 5px #EF8354;
    padding-top: 5px;
    

}

th:first-of-type{
    text-align: left;
}

caption{
    font-weight: bold;
    text-decoration: underline;
    color: #EF8354;
}