@import url('./footer.css');
@import url('./about.css');
@import url('./projects.css');
@import url('./contacts.css');

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-slide-in {
  animation: slideInLeft 0.8s ease forwards;
    animation-play-state: running;
  opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

body, html {
    min-height: 560px;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Space Mono', 'Roboto Mono', monospace;
    background-color: #0a0e17;
    color: #e2e8f0;
}

.mobile-header{
    display: none;
}

.menu-container{
    display: none;
}

.glass {
    background: rgba(17, 25, 40, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 15px;
}

.grid-bg {
    background-image: 
        linear-gradient(rgba(66, 153, 225, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 153, 225, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.lang-desktop, .lang-mobile {
    display: flex;
    cursor: pointer;
    margin-left: 15px;
    font-family: 'Rubik';
    z-index: 998;
}

.absolute{
    position: absolute;
}

.right{
    right: 0;
}

.margin-top{
    margin-top: 1.875rem;
}

.margin-right{
    margin-right: 5rem;
}

.lang_ico{
    display: flex;
    align-items: center;
}

.lang_ico>img{
    width: 30px;
    height: 30px;
}
.lang__current {
    color: white;
    font-size: 18px;
    border-radius: 8px;
    background-color: transparent;
    user-select: none;
    margin-left: 5px;
}
  
.lang__list {
    position: absolute;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 6px;
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
    display: none;
    z-index: 999;
    min-width: 150px;
}
  
.lang__list li a {
    display: block;
    font-size: 15px;
    font-family: "Rubik";
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}
  
.lang__list li a:hover {
    background-color: #333;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    /*z-index: 10;*/
}

.text-center{
    text-align: center;
    z-index: 10;
}

.my_name{
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.6), 0 0 20px rgba(66, 153, 225, 0.4);
    font-weight: 700;
    font-size: 4.5rem;
    line-height: 1;
    margin: 0;
    margin-bottom: 1rem;
}

.my_position{
    transition-delay: 0.2s;
    --tw-text-opacity: 1;
    color: rgba(96,165,250,var(--tw-text-opacity));
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin-bottom: 3rem;
    font-weight: inherit;
}

.social_links {
    justify-content: center;
    display: flex;
    margin-bottom: 4rem;
}

.social-icon_wrapper {
    transition: all 0.3s ease;
    --tw-space-x-reverse: 0;
    margin-right: calc(2rem * var(--tw-space-x-reverse));
    margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));
}

.social-icon_wrapper:hover {
    transform: translateY(-5px);
    filter: brightness(1.3);
}

.social-icon{
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
}

.nav-links{
    justify-content: center;
    display: flex;
    margin-top: 5rem;
}

.nav-link{
    transition-property: background-color,border-color,color,fill,stroke;
    transition-timing-function: cubic-bezier(0.4,0,0.2,1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgba(156,163,175,var(--tw-text-opacity));
    text-decoration: inherit;
    --tw-space-x-reverse: 0;
    margin-right: calc(1.5rem * var(--tw-space-x-reverse));
    margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}

.nav-link:hover{
    color: white;
}

.ico_wrapper{
    padding-top: 4px;
}

.ico_wrapper svg path {
    
    transition: fill 0.3s ease;
}

.ico_wrapper:hover svg path {
    fill: #fff; 
}


.glow-text {
    text-shadow: 0 0 10px rgba(66, 153, 225, 0.6), 0 0 20px rgba(66, 153, 225, 0.4);
}

.glow-btn {
    box-shadow: 0 0 10px rgba(66, 153, 225, 0.6), 0 0 20px rgba(66, 153, 225, 0.4);
    transition: all 0.3s ease;
    --tw-text-opacity: 1;
    color: rgba(255,255,255,var(--tw-text-opacity));
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.75rem;
    padding: 1rem 3rem 1rem 3rem;
    --tw-bg-opacity: 1;
    background-color: rgba(37,99,235,var(--tw-bg-opacity));
    border-radius: 9999px;
    text-decoration: inherit;
}

.glow-btn:hover {
    box-shadow: 0 0 15px rgba(66, 153, 225, 0.8), 0 0 30px rgba(66, 153, 225, 0.6);
    background: rgba(66, 153, 225, 0.8);
    transform: translateY(-2px);
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-600 { animation-delay: 600ms; }
.delay-800 { animation-delay: 800ms; }


/*

| Device                  | Type         | Width (min–max)  | Comment                          |
| ----------------------- | ------------ | ---------------- | -------------------------------- |
| **Mobile**              | `mobile`     | 0 – 639px        | iPhone, Android                  |      
| **Tablect vertical **   | `tablet-sm`  | 640 – 767px      | Small Tablets, Big Phones        |
| **Tablet horizontal  ** | `tablet`     | 768 – 1023px     | iPad horizontal                  |
| **Desktop small **      | `laptop-sm`  | 1024 – 1279px    | Standart Laptops                 |
| **Desktop**             | `desktop`    | 1280 – 1535px    | Full HD monitors                 |
| **Big screens**         | `desktop-xl` | 1536px and more  | 2K/4K and TV                     |

*/

@media (max-width: 639px) {
    .margin-top{
        margin-top: .875rem;
    }

    .my_position{
        font-size: 1.125rem;
    }

    .margin-right{
        margin-right: 1rem;
    }

    
    .mobile-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90%;
        position: fixed;
        margin: 1.5rem 0 0 1.5rem;
        z-index: 1000;
    }

    .header-text{
        --tw-text-opacity: 1;
        color: rgba(96,165,250,var(--tw-text-opacity));
        font-weight: 700;
        font-size: 1.5rem;
    }

    .hamburger {
        width: 24px;
        height: 18px;
        position: relative;
        cursor: pointer;
        z-index: 1000;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #4299e1;
        border-radius: 1px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
        box-shadow: 0 0 5px rgba(66, 153, 225, 0.5);
    }

    .hamburger span:nth-child(1) { top: 0px; }
    .hamburger span:nth-child(2) { top: 8px; }
    .hamburger span:nth-child(3) { top: 16px; }

    .hamburger.active span:nth-child(1) {
        top: 8px;
        transform: rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        top: 8px;
        transform: rotate(-45deg);
    }
    
    .menu-wrapper{
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        width: 100%;
        z-index: 1000;
        margin-top: 4rem;
    }

    .menu-container.active {
        display: block;
    }

    .menu-container{
        background: rgba(17, 25, 40, 0.9);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(66, 153, 225, 0.3);
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        padding: 2rem;
        max-width: 20rem;
        width: 100%;
    }

    .lang-desktop{
        display: none;
    }

    .menu-item {
        --tw-space-y-reverse: 0;
        margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
        margin-bottom: calc(1rem * var(--tw-space-y-reverse));
        transition: all 0.3s ease;
        background: rgba(17, 25, 40, 0.6);
        border: 1px solid rgba(66, 153, 225, 0.2);
        border-radius: 12px;
        padding: 1rem;
        align-items: center;
        display: flex;
        color: inherit;
        text-decoration: inherit;
    }
    
    .current{
        background: rgba(255, 159, 67, 0.2);
        border-color: rgba(255, 159, 67, 0.6);
        box-shadow: 0 0 15px rgba(255, 159, 67, 0.4);
    }

    .text-lg{
        --tw-space-x-reverse: 0;
        font-weight: 500;
        line-height: 1.75rem;
        margin-left: calc(.5rem * calc(1 - var(--tw-space-x-reverse)));
    }

    .my_name{
        font-size: 2.25rem;
    }

    .social-icon_wrapper{
        margin-right: calc(.5rem * var(--tw-space-x-reverse));
        margin-left: calc(.5rem * calc(1 - var(--tw-space-x-reverse)));
    }

    .glow-btn{
        font-size: 1rem;
        padding: 0.875rem 1.5rem 0.875rem 1.5rem;
    }

    .lang{
        margin-top: 15px;
        display: flex;
    }

    .nav-links{
        display: none;
    }

}

/* 
Планшеты (640px и выше) 
@media (min-width: 640px) and (max-width: 1023px) {
  .card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

Десктопы (1024px и выше) 
@media (min-width: 1024px) {
  .menu {
    display: flex;
  }

  .burger {
    display: none;
  }

  .card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
*/

