@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Savate:ital,wght@0,200..900;1,200..900&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

.intro {
    height: 100vh;
    width: 100%;
    background: url('intro-image.png') no-repeat center center / cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.scroll-btn {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            border: 2px solid white;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: white;
            font-size: 2rem;
            position: relative;
            animation: pulse-ring 2s infinite;
            transition: all 0.3s ease;
}

.scroll-btn:before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.5);
            animation: pulse-ring 2s infinite;
            animation-delay: 0.5s;
}

.scroll-btn:after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,0.3);
            animation: pulse-ring 2s infinite;
            animation-delay: 1s;
        }

        @keyframes pulse-ring {
            0% { transform: scale(1); opacity: 1; }
            100% { transform: scale(1.5); opacity: 0; }
        }

        .scroll-btn:hover {
            transform: scale(1.1);
            background: rgba(255,255,255,0.3);
        }

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .block {
        flex: 1 1 100%;
    }

    .profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar {
        margin-bottom: 15px;
    }
    .icon {
        width: 24px;
        height: 24px;
    }
    .skill {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
  .intro {
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
  }
  .scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-width: 1.5px;
  }
}






.sun-highlight {
    position: absolute;
    background-color: rgba(255, 223, 0, 0.3); /* полупрозрачный жёлтый свет */
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* положение и размер солнышка по умолчанию (для больших экранов) */
.sun-highlight {
    width: 8vw;
    height: 8vw;
    top: 0%;
    right: 22%;
}

/* Адаптивность на планшетах */
@media (max-width: 768px) {
    .sun-highlight {
        width: 12vw;
        height: 12vw;
        top: 18%;
        right: 12%;
    }
}

/* Адаптивность на смартфонах */
@media (max-width: 480px) {
    .sun-highlight {
        width: 15vw;
        height: 15vw;
        top: 15%;
        right: 10%;
    }
}

.sun-highlight:hover {
    opacity: 1;
}







main {
    width: 100%;
    position: relative;
}






/* #main .scroll-btn-footer {
position: absolute;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
background-image: url('ghost3.png');
background-size: cover;
border: none;
border-radius: 50%;
z-index: 1000;
animation: bounce 2s infinite;
}
#main .scroll-btn-footer:hover {
animation-play-state: paused;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
} */




#main .scroll-btn-footer {
position: absolute;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
border: none;
border-radius: 50%;
background: #ff4444;
z-index: 1000;
cursor: pointer;
}
#main .scroll-btn-footer::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 0;
height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 10px solid white;
}
#main .scroll-btn-footer::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
border: 2px solid #ff4444;
border-radius: 50%;
transform: translate(-50%, -50%);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) scale(1.5);
opacity: 0;
}
}
@media (max-width: 768px) {
#main .scroll-btn-footer {
width: 40px;
height: 40px;
bottom: 10px;
right: 10px;
}
#main .scroll-btn-footer::before {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 8px solid white;
}
}






.content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: calc(10px + 2%);
    background: #f2f2f2;
}

.block {
    flex: 0 0 calc(50% - 10px);
    padding: 20px;
    background-color: #ede9e1 ;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
    overflow: hidden;
    box-sizing: border-box;
}

.profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    background: url('image.png')  no-repeat center center / cover;
}

.info {
    width: 100%;
    border-collapse: collapse;
}

.info th {
    text-align: left;
    padding-right: 25px;
    color: #555;
    white-space: nowrap;
    font-family: "Roboto", sans-serif;
}

.info td {
    padding: 10px;
    width: 100%;
    word-wrap: break-word;
    font-family: "Lato", sans-serif;
}

.skills {
    padding: 10px;
}

.skill {
    margin-bottom: 15px;
    font-weight: bold;
    font-family: "Roboto", sans-serif;
}

.icon {
    display: inline-block;
    width: 125px;
    height: 125px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 8px;
    vertical-align: middle;
}

.icon.html {
    background-image: url('icons/html.png');
}

.icon.css {
    background-image: url('icons/css.png');
}

.icon.js {
    background-image: url('icons/javascript.png');
}

.icon.ts {
    background-image: url('icons/typescript.png');
}

.icon.node {
    background-image: url('icons/node.png');
}

.icon.vue {
    background-image: url('icons/vue.png');
}

.icon.angular {
    background-image: url('icons/angular.png');
}

.icon.mongodb {
    background-image: url('icons/mongodb.png');
}

footer {
    width: 100%;
    position: relative;
}

#footer .scroll-btn-up {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #ff4444;
    z-index: 1000;
    cursor: pointer;
}
#footer .scroll-btn-up::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid white;
}
#footer .scroll-btn-up::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #ff4444;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}
}
@media (max-width: 768px) {
#footer .scroll-btn-up {
    width: 40px;
    height: 40px;
    bottom: 10px;
    right: 10px;
}
#footer .scroll-btn-up::before {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid white;
}
}