body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    background-color: #F5F5F5;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

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

.logo {
    max-width: 100px !important;
}

.logo img {
    width: 100% !important;
    height: auto;
}

h1,
h2,
h3 {
    color: #323B4C;
}

h2 {
    border-bottom: 2px solid #323B4C;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}


#header {
    background-color: #1a1a1a;
    background-image: url('./images/dark-wall.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 10px 0;
    top: 0;
    z-index: 1000;
}

#hero {
    background-color: #1a1a1a;
    background-image: url('./images/dark-wall.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

#header nav ul li {
    margin: 0 15px;
}

#header nav ul li a {
    color: #fff;
    font-weight: bold;
}

#header nav ul li a:hover {
    color: #ddd;
    text-decoration: none;
}

#header nav ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: normal;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

#header nav ul li a:hover {
    color: #fff;
    text-decoration: none;
}


#hero h2 {
    margin-top: 0;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-weight: normal;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.burger-button {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1050;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

#hero h1.animate-neon {
    animation: flicker 3s linear infinite;
}


#hero h1 {
    font-family: 'Sacramento', cursive;
    font-size: 4.5em;
    font-weight: normal;
    color: #fff;
    margin: 0 0 10px 0;
    padding: 0;
    opacity: 1;
    text-shadow: none;
}

#main-nav {
    display: flex;
}

.section-light {
    padding: 40px 0;
    background-color: #F5F5F5;
}

.profile-photo {
    display: block;
    float: left;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 25px;
    margin-bottom: 15px;
    border: 1px solid #323B4C;
}

#about::after {
    content: "";
    display: table;
    clear: both;
}

.job,
.education-item {
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 0.5px solid #323B4C;
}

.job h3,
.education-item h3 {
    margin-bottom: 5px;
}

.job p,
.education-item p {
    margin: 5px 0;
    font-size: 0.95em;
}

.job strong {
    color: #555;
}

.job ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.job ul li {
    margin-bottom: 5px;
}

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

.skills-grid h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #007bff;
}

.skills-grid ul li {
    margin-bottom: 5px;
    font-size: 0.95em;
}

.cisco-sert{
    max-width: 45%;
    margin-bottom: 20px;
}
.sert{
    max-width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    color: #007bff;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 0.7;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #323B4C;
}

.project-card p {
    font-size: 0.9em;
    margin-bottom: 10px;
    flex-grow: 1;
}

.project-card p:last-of-type {
    flex-grow: 0;
    margin-bottom: 20px;
}

.project-card strong {
    color: #555;
}

.project-link {
    margin-top: auto;
    margin-right: 10px;
    padding: 8px 15px;
    font-size: 0.9em;
    text-align: center;
    display: inline-block;
    margin-bottom: 5px;
}


#contact ul li {
    margin-bottom: 15px;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: #fff;
}

#footer {
    background-color: #323B4C;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

#footer p {
    margin: 0;
    font-size: 0.9em;
}

html {
    scroll-behavior: smooth;
}

.lang-switch {
    margin-left: 20px;
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    padding: 5px;
    transition: color 0.3s ease;
}

.lang-switch a:hover {
    color: #fff;
    text-decoration: none;
}

.lang-switch a.active {
    opacity: 0.99;
    text-shadow:
        0 0 0.1em #fff, 0 0 0.2em #fff, 0 0 0.3em #fff,
        0 0 0.4em #fed128, 0 0 0.7em #fed128, 0 0 1em #fed128, 0 0 1.5em #fed128;
    cursor: default;
}

@media (max-width: 768px) {
    .lang-switch {
        position: absolute;
        margin-left: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1041;
    }
    .cisco-sert {
    max-width: 100%;
    margin-bottom: 20px;
    }
}

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;

    background-color: #007bff;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #0056b3;
}


#scrollTopBtn.visible {
    display: block;
    opacity: 0.8;
    visibility: visible;
}

.tourism {
    background-image: url('./images/tourism-logo.jpg');
}

.shameday {
    background-image: url('./images/shameday-logo.png');
}

.tellme {
    background-image: url('./images/tellme-logo.png');
}

.uastreet {
    background-image: url('./images/uastreet-logo.png');
}

.turbomaster {
    background-image: url('./images/turbomaster-logo.jpg');
}

.itseems {
    background-image: url('./images/tellme-logo.png');
}

.yerchenko {
    background-image: url('./images/yerchenko-logo.png');
}

.github-pic{    
    display: inline-block;
    margin: 30px 0 30px;
    text-decoration: none;
    font-weight: bolder;
    font-size: 1.2em;
    color: #007bff;
}
.contact-link{
    display: inline-block;
    text-decoration: none;
    font-weight: bolder;
    font-size: 1.2em;
    color: #007bff; 
}

/* Адаптивність */
@media (max-width: 768px) {
    #header nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    #header nav ul li {
        margin: 5px 0;
    }

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

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

    .burger-button {
        display: block;
    }

    #main-nav {

        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(46, 55, 72, 0.95);
        padding-top: 80px;
        transition: left 0.4s ease-in-out;
        z-index: 1040;
        display: flex;
        justify-content: space-evenly;
    }

    #main-nav.nav-active {
        left: 0;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    #main-nav ul li {
        margin: 15px 0;
    }

    #main-nav ul li a {
        font-size: 1.2em;
        color: #fff;
        text-shadow: none;
    }

    .burger-button.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-button.active .burger-bar:nth-child(2) {
        opacity: 0;
    }

    .burger-button.active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .profile-photo {
        float: none;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
        width: 120px;
        height: 120px;
    }

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

    #hero h1 {
        font-size: 2em;
    }

    #hero h2 {
        font-size: 1.2em;
    }

    #hero h1 {
        font-size: 3em;
    }

    #hero h2 {
        font-size: 1em;
        letter-spacing: 2px;
    }
}



@keyframes flicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
        opacity: 0.99;
        text-shadow:
            0 0 0.1em #fff, 0 0 0.2em #fff, 0 0 0.3em #fff,
            0 0 0.4em #fed128, 0 0 0.7em #fed128, 0 0 1em #fed128, 0 0 1.5em #fed128;
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
        opacity: 0.4;
        text-shadow: none;
    }
}