
html, body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    width: 100%;
    overflow-x: hidden;  
    font-family: var(--primary-font); 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
:root {
    --primary-font: 'Shantell Sans', sans-serif;
    --primary-color: #a334dba0; 
  }
::placeholder {
    font-family: var(--primary-font);
}
input, textarea {
font-family: var(--primary-font);
}

/* Остальные стили */

header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    font-family: var(--primary-font);
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-variation-settings: "BNCE" 0,"INFM" 0,"SPAC" 0;  
    color: white;
    text-align: center;
    padding: 0.3vh 0.3vw;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

header h1 {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    margin: 5px;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 1vh;
    margin: 5px;
}

.description {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    margin: 5px;
    transition: all 0.3s ease;
}
.description:hover {
    transform: translateY(-56px)ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tb {

    text-align: center;
    margin: 0 auto;
    border-collapse: collapse;
}
.tb table {
  margin: 0 auto;
  border-collapse: collapse;
}
/*Модальное окно*/
#modal {
    position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
    border-radius: 50%;
    width: 350px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    padding-top: 18px;
}

.modal-content h2{
    font-family: var(--primary-font);
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-variation-settings: "BNCE" 0,"INFM" 0,"SPAC" 0;   
    font-size: 18px;
    margin-bottom: 15px;
    color: #fffffffa;
}
.modal-content h2:hover{
    transform: translateY(-56px)ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.close {
    color: #fff;
    position: absolute;
    right: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -7px;
}

.close:hover,
.close:focus {
    color: #cc0000;
    text-decoration: none;
    cursor: pointer;
    transform: translateY(56px)ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
#consultation-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    position: relative;
}
#consultation-form input,
#consultation-form textarea{
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: none;
    border-radius: 45px;
}
#consultation-form button {
    margin-bottom: 2px;
    padding: 5px;
    cursor: pointer;
    border: none;
    border-radius: 45px;
    width: 150px;
    transition: background-color 0.3s ease; /
}
#consultation-form button:hover {
    background-color: #7dea80c9;
    color: white; 
}

#consultation-form .close {
    position: absolute;
    top: -70px;
    right: 130px;
    font-size: 24px;
    cursor: pointer;
}
.about {
    padding-top: 15px;
    background-color: #f9f9f9; 
    padding-left: 55px;
    padding-right: 15px; 
    box-sizing: border-box; 
}

.container {
    
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--primary-font);
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-variation-settings: "BNCE" 0,"INFM" 0,"SPAC" 0;  
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}


.container h3{
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
    margin: 25px;

}
/*about*/
.about-header {
    flex: 0 0 48%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-education {
    flex: 0 0 50%; 
    margin-left: 4%; 
    margin-right: 4%;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; 
    border-collapse: collapse;
}

.about-content img {
    max-width: 250px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border-radius: 15px;
}
.about-content img:hover {
    transform: scale(1.05);
}
.about-intro{
    padding-right: 23px;
    padding-left: 50px;
    text-align: center;
}

/*education*/
.education-block h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 550;
    margin: 15px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.education-block {
    width: 100%;
    margin: 15px 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-block h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.education-block p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.education-block ul {
    list-style-type: none;
    padding-left: 0;
}

.education-block ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
    line-height: 1.4;
}

.education-block ul li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    position: absolute;
    left: 0;
}

/*Ярлык для заказов*/
#serviceLabel {
   
    padding: 15px 10px;
    min-height: 50px; 
    min-width: 15px;

    font-family: var(--primary-font);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "BNCE" 0,"INFM" 0,"SPAC" 0;
    font-size: 15px;
    font-weight: bold;

    box-shadow: 0 0 15px rgba(0, 0, 0, 0.201);
    cursor: pointer;
    position: fixed;
    left: -5px;
    top: 35%;
    z-index: 1000;

    border-radius: 0 20px 20px 0;
    color: white;

    writing-mode: vertical-rl;
    text-orientation: mixed;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;

}
#serviceLabel:hover {
    transform: translateX(5px); 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#serviceLabel:active {
    transform: translateX(0); 
}
#serviceLabel .close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 20px;
    cursor: pointer;
}

.social-icon {
    color: #fff;
    font-size: 30px;  
    margin: 0 13px; 
}
.social-icon i {
    transition: transform 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.2);
}
/*Footer*/
footer {
    font-family: var(--primary-font);
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-variation-settings: "BNCE" 0,"INFM" 0,"SPAC" 0;  
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding:5px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-top: 20px;
    margin-top: 1px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: flex;
    align-items: start;
}

/*Копирайт*/
.info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 5px;
}
.info p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-content img {
    max-width: 45px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.footer-content img:hover {
    transform: scale(1.1);
}
/*Соц сети/контакты*/
.social-links{
    margin-top:7px;
}



footer .social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

footer .social-icon {
    
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icon:hover {
    transform: scale(1.1);
}
/*Цвет для ВСЕХ соц сетей*/
#t:hover { color: #27A5E7; }
#wa:hover { color: #25D366; }
#ph:hover { color: #34C759; }

/*???*/



/*???*/
/*All for media*/
/*480px*/

@media (max-width: 480px) {
    .education-block h3 {
        font-size: 1.5rem;
        padding: 10px;
    }

    .education-block h4 {
        font-size: 1.1rem;
    }

    .education-block p,
    .education-block ul li {
        font-size: 0.9rem;
    }
}
/*768px*/
@media (max-width: 768px) {
    header {
        padding: 1vh 1vw;
        max-width: 100%;  
    }
    .education-block h3 {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    .education-block {
        padding: 15px;
    }

    .education-block h4 {
        font-size: 1.2rem;
    }

    .education-block p,
    .education-block ul li {
        font-size: 0.95rem;
    }
}
/*768px landscape*/
@media (orientation: landscape) and (max-height: 768px) {
    header {
        max-height: 40vh;
    }
}

/*768px portrait*/
@media (max-width: 768px) and (orientation: portrait) {
    body {
        padding: 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .about-header,
    .about-education,
    .education-block {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 15px;
        flex: 0 0 50%;
    }

    .header {
        max-width: 100%;
        padding: 10px;
    }

    .footer-content {
        flex-direction: column-reverse;
        align-items: center;
        padding: 15px;
    }

    .footer-row.social-links {
        margin-bottom: 15px;
    }

    .info {
        text-align: center;
        margin-top: 5px;
    }

    footer .social-icon {
        font-size: 20px;
        margin: 0 5px;
    }
    .about-content img {
        max-width: 250px;
    }

    .education-block h4 {
        font-size: 1.1rem;
    }

    .education-block p,
    .education-block ul li {
        font-size: 0.9rem;
    }
}
/*1260px*/
@media (max-width: 1260px) {
    
    .container {
        flex-direction: column;
        align-items: center;
    }

    .about-header,
    .about-education {
        flex: 0 0 50%;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .education-block {
        width: 90%;
        margin: 15px auto; 
        padding: 20px;
        
    }

    .education-block h3 {
        width: 100%;
        margin-bottom: 15px; 
        font-size: 18pt;
        text-align: center;
        
    }

    .education-block h4 {
        margin-top: 15px; 
        margin-bottom: 10px;
    }

    .education-block p,
    .education-block ul {
        width: 100%;
        margin-bottom: 15px; 
    }

    .education-block ul li {
        margin-bottom: 10px; 
    }
   
}

/*keyframes*/

@keyframes colorfulShadow {
    0% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), inset 0 0 20px rgba(255, 0, 0, 0.5); }
    25% { box-shadow: 0 0 30px rgba(0, 255, 0, 0.8), inset 0 0 20px rgba(0, 255, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(0, 0, 255, 0.8), inset 0 0 20px rgba(0, 0, 255, 0.5); }
    75% { box-shadow: 0 0 30px rgba(255, 255, 0, 0.8), inset 0 0 20px rgba(255, 255, 0, 0.5); }
    100% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), inset 0 0 20px rgba(255, 0, 0, 0.5); }
}


@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a:not(footer a):not(.social-icon):not(.screenshot a) {
  display: inline-block;
  width: 240px; 
  text-align: center; 
  color: #fff;
  background: #1d1f299c;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: inset 0 4px 6px rgba(0,0,0,0.6);
  transition: all 0.2s ease;
   
}

a:hover:not(footer a):not(.social-icon):not(.screenshot a) {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
}
.language-button {
  display: inline-block;
  width: 100px;
  padding: 10px 0;
  margin: 5px;
  background: #4a4e69;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(69, 34, 34, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  text-align: center;
  min-height: 44px;
}

.language-button:hover {
  background: #6c6f88;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

/*Подсветка кнопок*/
.language-button.active-lang {
  background-color: #007BFF;
  color: white;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}

/*Portfolio*/
.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.portfolio-card:hover {
  transform: scale(1.03);
}

.portfolio-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--primary-font);
}



.screenshot a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.screenshot a:hover {
  transform: scale(1.02);
}

.screenshot img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit:cover;
  display: block;
}

.project-link {
  margin-top: 0.8rem;
  display: inline-block;
  background-color: #007BFF;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: #0056b3;
}

/*Прокрутка в портфолио <>*/
.portfolio-wrapper {
  position: relative;
  width: 100%;
  max-width:750px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.portfolio-slider {
  display: flex;
  overflow: hidden;
  gap: 16px;
  width: 100%;
  
}


.arrow {
  background-color: #06060625;
  border: none;
  color: rgb(255, 255, 255);
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  width: 40px;
}

.arrow:hover {
  background-color: #292e337b;
}

/* Пиктограммы html css js json*/
.made-with {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-top: 10px;
}

.html-icon {
  color: #e44d26;
}

.css-icon {
  color: #264de4;
}

.js-icon {
  color: #f0db4f;
}

.json-icon {
  color: #6e6e6e;
}

.made-with i {
  transition: transform 0.3s ease;
}

.made-with i:hover {
  transform: scale(1.2);
}



/* Тёмная тема */

.dark-theme,
.head.dark-theme,
.about-content.dark-theme,
.education-block.dark-theme,
.container.dark-theme,
.body.dark-theme,
header.dark-theme,
footer.dark-theme,
.about-content.dark-theme,
.education-block.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
    
}
/* Специфичные стили для header и footer в темной теме */
header.dark-theme {
    background:#000000; 
    color: #e0e0e0; 
}

footer.dark-theme {
    background: #000000;
    color: #e0e0e0; 
}

.portfolio-card.dark-theme{
    background-color: #000000; 
    color: #e0e0e0;
}
.education-block.dark-theme {
    background-color: #000000; 
    color: #e0e0e0;
}

.theme-switch {
    width: 35px;
    height: 40px; 
    font-family: var(--primary-font);
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.201);
    cursor: pointer;
    position: fixed;
    right: -5px; 
    top: 35%;
    z-index: 1000;
    padding: 15px 10px;
    border-radius: 20px 0 0 20px; 
    color: rgb(255, 255, 255);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background:#0e080885;
    border: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    animation: gradientShift 5s ease infinite, colorfulShadow 10s linear infinite;
}

.theme-switch:hover {
    transform: translateX(-5px); 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.theme-switch:active {
    transform: translateX(0); 
}


/* Стили для темной темы, если нужно изменить вид кнопки */
.theme-switch.dark-theme {
    background:#fefefebb; 
    color: #12121288; 

