/* Properties / Styles For Home Page <index.html> */ 
/**
* @description: Root CSS File for Websites* (https://offensive-vk.github.io/) (https:://offensive-vk.pages.dev/)
* @dated: September 1, 2023
* @isRoot: true.
* @content: Personal Website. 
* @lang: CSS (Cascading Style Sheets v3).
* @copyright (c) by Vedansh @ <offensive-vk>. All rights reserved.
*/
/* This File Belongs to respected authors and developers.* */

@media only screen and (max-width: 1200px) {
    body {
        overflow: hidden;
    }
    header {
        display: none;
    }
    .first {
        display: none;
    }
    .second {
        display: none;
    }
    .third {
        display: none;
    }
    footer {
        display: none;
    }
    
    body::before {
        content: "Sorry, this website is not available on smaller screens.";
        display: block;
        position: fixed;
        margin: 0 auto;
        width: 100vw;
        height: 100vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        font-size: 5rem;
        color: #000;
        background: var(--color2);
        padding: 20px;
        border-radius: 15px;
    }
}

@media only screen and (max-width: 600px) {

    header {
        display: none;
    }
    .first {
        display: none;
    }
    .second {
        display: none;
    }
    .third {
        display: none;
    }
    footer {
        display: none;
    }
    
    body {
        content: "Sorry, this website is not available on smaller screens.";
        display: block;
        position: fixed;
        margin: 0 auto;
        width: 100dvw;
        height: 100dvh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        font-size: 5rem;
        color: #000;
        background: var(--color2);
        padding: 20px;
        border-radius: 15px;
        overflow: hidden;
    }
}

/* Global Colors */
:root {
    --color: linear-gradient(45deg, aqua, magenta, orange);
    --color2: linear-gradient(120deg, lightgreen, orange);
    --color3: linear-gradient(163deg, #00ff75 0%, #3700ff 100%);
    --color4: linear-gradient(171deg, #26eff2 12%, #994cc2 78%);
    --light-gradient: linear-gradient(91.08deg,#feb484 1.97%,#a686f2 27.88%,#592ac8 65.98%);;
    --welcome: rgb(98, 0, 234);
    --slogan: rgb(236, 64, 122);
    --blue: rgb(61, 90, 254);
    --light-blue: rgb(33, 150, 243);
    --light-green: rgb(95, 255, 180);
    --light-blue-percent: rgb(24, 49, 97);

    --max-width: 1380px;
    --max-height: 99999px;
}

h1, h2, h3, h4, h5, h6, p::selection {
    background-color: #000;
}
body::selection {
    background-color: #000;
}

body {
    overflow-x: hidden;
    user-select: none;
    scroll-behavior: smooth;
    font-size: 1em;
    margin: 20px;
    padding: 15px;
    color: #fff;
    background-color: rgb(13, 30, 36);
    /* resize: both;    */
    cursor: default;
    display: flex;
    align-items: center;
    flex-direction: column;
}

h2,h3 {
    text-align: center;
    font-size: 3rem;
    background: linear-gradient(130deg, aqua, magenta, orange);
    background-color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: clamp(1rem, 1.35rem, 2rem);
    /* margin-left: 14px; */
    color: #fff;
}

.top {
    text-align: center;
    font-size: 20px;
    scroll-behavior: smooth;
    width: 80%;
    font-weight: 200;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(60deg, aqua, magenta, orange);
    background-color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: border-bottom 500ms ease-in-out;
}

.home, .top:hover {
    text-decoration: none;
    color: #000;
}
header {
    position: sticky;
    z-index: 1;
    top: 2rem;
    box-shadow: 0rem 0rem 4rem 1rem #000;

    max-width: 1350px;
    width: 1280px;
    align-items: center;
    border: 1px solid #000;

    border-radius: 14px;
    background: linear-gradient(45deg, aqua, magenta, orange);
    background-size: 200% 100%;
    transition: background-position 0.7s ease-in-out;
}

header:hover {
    background-position: -100% 0;
    outline: 2px solid #fff;
}

ul {
    display: flex;
    justify-content: space-around;
}

li a {
    width: 90%;
    font-weight: 300;
    font-size: 1.9em;
    color: #fff;
    text-decoration: none;
}

hr {
    border: none;
    border-radius: 99px;
    background: linear-gradient(130deg, aqua, magenta, orange);
}

/* Content  */
.first {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 30px;
    max-width: var(--max-width);
}
.first > .widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

.first > .widgets > .clock {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(2rem, 7vw, 10rem);
    margin: 10px;
    padding: 0rem clamp(1rem, 2vw, 3rem);
    border-radius: clamp(0.4rem, 0.75vw, 1rem);
    background-image: linear-gradient(-75deg, #FA8BFF 0%, #2BD2FF 45%, #2BFF88 90%);    
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.first > .widgets > .brand {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(2rem, 10vw, 10rem);
    margin: 7.5px;
    padding: 0rem clamp(1rem, 2vw, 3rem);
    border-radius: clamp(0.4rem, 0.75vw, 1rem);
    animation: background-pan 3.5s linear infinite;
    background: linear-gradient(to right, cyan, magenta,orange,cyan);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.first > .widgets > .slogan {
    color: var(--slogan);
    font-family: 'Dancing Script', cursive;
    font-size: 3.5em;
    line-height: 1.4em;
    font-weight: bold;
    transition: all .3s ease; 
}
.first > .widgets > .slogan:hover {
    letter-spacing: 2.2px;
}
/*  box-shadow: 0 0 0.3em rgba(255, 255, 255, 0.5) 
    text-shadow: 0 0 20px rgba(77, 166, 255, 0.8);
*/

@keyframes background-pan {
    from {
        box-shadow: 0 0 0.3em rgba(255, 255, 255, 0.5);
        background-position: 0% center;
    }
    to {
        box-shadow: 0 0 0.5em rgba(255, 255, 255, 0.5);
        background-position: -200% center;
    }
}

/* Blinking cursor animation */
@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #00ff75;
    }
}
#typewriter-paragraph {
    padding: 0.3rem;
    margin: 0.7rem;
    text-align: justify;
}
/* CSS for the word highlight animation */
.animated-word {
    animation: colorChange 0.5s ease, blink-caret 0.3s linear forwards;
    display: inline-block;
    margin-right: 4px;
    border-right: 8.2px solid transparent;
    transition: all 0.3s ease-in-out;
}
.animated-word:hover {
    color: #00ff75;
    cursor: text;
    transform: rotate(-7deg);
    background-image: linear-gradient(to right, cyan, magenta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Keyframes for the word color change animation */
@keyframes colorChange {
    0% {
        border-right: none;
        color: black;
    }
    100% {
        
        opacity: 0.4;
        font-style: italic;
        font-family: monospace;
        color: cyan;
    }
}
/* End of First */

/* Second container */
.second {
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
}
.second > p {
    margin: 0 auto;
}
.container {
    gap: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: transparent;
    font-family: Arial Nova, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    /* border: 2px solid #fff; */
}

.box {
    border: 2px solid #fff;
    /* flex: 6 / 2; */
    margin: 20px;
    padding: 20px;
    background-color: transparent;
    border-radius: 5px;
    width: calc(33.33% - 1vh);
    height: calc(33.33% - 100px);
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    transform: translateY(50px) rotateZ(22deg);
    transition: all .5s ease-in-out;

}
.box.active {
    opacity: 1;
    transform: translateY(0) rotateZ(0deg);
}
.box:hover {
    background-color: #4e6057;
    transform: scale(0.98);
    border-radius: 20px;
    box-shadow: 0 0 2.2rem #feb484;
}

.box img {
    float: left;
}

.box p {
    font-family: Arial Nova, sans-serif;
    margin: 10px;
    font-size: 1rem;
    text-align: justify;
    color: #fff;
}

.box a {
    font-size: 1rem;
    width: 2rem;
    color: #fefefe;
    background-color: #000;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px;
    margin: 100px;
    background-size: 200% 100%;
    transition: all 800ms ease-in-out;
}

.box a:hover {
    background: var(--color);
    background-position: -200% 0;
}

.box > a > .material-symbols-outlined {
    transform: rotate(190deg);
    transform: translateY(9px);
    border: none;
    /* vertical-align: baseline; */
}

a:hover .material-symbols-outlined {
    animation: rotate-icon 900ms forwards;
}

@keyframes rotate-icon {
    0% {
        transform: translateY(10px) rotate(0deg);
        opacity: 1;
    }

    90% {
        transform: rotate(-190deg);
        opacity: 1;
    }

    100% {
        transform: translateX(10px);
    }
}

/* Third Container */
.third {
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: var(--max-width);
}

.frameworks {
    display: flex;
    flex-direction: column;
}

.fr {
    border: 1px solid transparent;
    padding: 14px;
    display: flex;
    margin: 20px;
    transition: all 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    font-size: 6px;
    gap: 7.7px;
}

.fr:hover {
    border: 1px solid white;
    border-radius: 17px;
    /* box-shadow:             
    2rem 0rem 2rem 0 cyan,
    2.5rem 0rem 0rem 0 magenta,
    3rem 0rem 2rem 0 orange; */
    box-shadow: magenta 0rem 0rem 2rem, cyan 0rem 1.5rem 2.2rem, orange 1.2rem 0rem 3rem;
}
.fr p {
    font-size: 1.2rem;
}
.img {
    border: none;
    border-radius: 19px;
    margin: 2.4em;
    transition: all 350ms ease-in-out;
}

.img:hover {
    box-shadow: 0 0 4.5rem #737373;
}

/* Fourth Section */
.fourth {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    gap: 18px;
    overflow: visible;
}
.js {
    height: auto;
    max-width: 1200px;
    background-color: transparent;
    /* border: 1px solid #ccc; */
    margin: 3.2px;
    padding: 10px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .3s ease-in-out;
}
.js:hover {
    border: 1.5px solid #fff;
    background-color: #161616;
    border-radius: 22px;
}
.js-title {
    text-align: center;
    background: linear-gradient(-1deg, aqua, magenta, orange);
    background-color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    font-family: 'IBM Plex Mono', Arial Nova Light;
    font-size: 3em;
    font-weight: bold;
    border: none;
    transition: all .3s ease-in-out;
    
}
.js-title:hover {
    letter-spacing: 5.5px;
}
.js-content {
    border-radius: 12px;
    color: #dfdfd7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 750ms ease-in-out, opacity 800ms ease-in-out;
    opacity: 0;
}
.js-content .js-para {
    width: 95%;
    margin-top: 15px;
    margin-left: 10px;
    padding: 5.5px;
    font-size: 3.1ch;
}
.js > .js-content ._sample {
    display: flex;
    padding: 8px;
    justify-content: center;
    align-items: center;
    /* max-width: 250px; */

}
.js.open .js-content {
    max-height: 2000px; 
    opacity: 1;
    box-shadow:             
    0 2rem 2rem 0 cyan,
    0 3rem 3rem 0 magenta,
    0 0rem 3.5rem 0 orange;
}
.js .js-content ._sample a {
    text-decoration: none;
    color: #dfdfd7;
    margin: auto 20px;
    font-size: 3ch;
    height: 50px;
    width: 150px;
    border-radius: 0;
    border: 1.5px solid #000;
    padding: 20px;
    text-align: center;
    transition: all .2s linear;
    line-height: 1.1;
    background-color: #000;
}
.js .js-content ._sample a::before {
    content: '';
    position: relative;
    inset: 0;
    border: 3px solid #fff;
    margin-right: 10px;
    animation: blink 2s linear infinite;
}
@keyframes blink {
    from{
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.js .js-content ._sample a::before:hover {
    transform: translateY(28px);
    
}
.js .js-content ._sample a:hover {
    background-color: #dfdfd7;
    color: #000;
    box-shadow:     
    0 0 1.5rem 0 cyan;
}
.js .js-content ._sample img {
    border-radius: 15px;
    scale: 0.7;
    /* height: 85vh;
    width: 75vw; */
    object-fit: cover;
    align-self: flex-end;
}
/* Fourth Section - End */

/* Theme Toggle */
.toggle-btn {
    display: grid;
    place-items: center;
}

.label {
    height: 60px;
    width: 120px;
    background-color: #ffffff;
    border-radius: 30px;
    -webkit-box-shadow: inset 0 0 5px 4px rgba(255, 255, 255, 1),
        inset 0 0 20px 1px rgba(0, 0, 0, 0.488), 10px 20px 30px rgba(0, 0, 0, 0.096),
        inset 0 0 0 3px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 5px 4px rgba(255, 255, 255, 1),
        inset 0 0 20px 1px rgba(0, 0, 0, 0.488), 10px 20px 30px rgba(0, 0, 0, 0.096),
        inset 0 0 0 3px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    -webkit-transition: -webkit-transform 0.4s;
    transition: -webkit-transform 0.4s;
    transition: transform 0.4s;
}

.label:hover {
    -webkit-transform: perspective(100px) rotateX(5deg) rotateY(-5deg);
    transform: perspective(100px) rotateX(5deg) rotateY(-5deg);
}

#checkbox:checked~.label:hover {
    -webkit-transform: perspective(100px) rotateX(-5deg) rotateY(5deg);
    transform: perspective(100px) rotateX(-5deg) rotateY(5deg);
}

#checkbox {
    display: none;
}

#checkbox:checked~.label::before {
    left: 70px;
    background-color: #000000;
    background-image: linear-gradient(130deg,
            #757272 10%,
            #ffffff 11%,
            #726f6f 62%);
    /* background-image: linear-gradient(315deg, #000000 0%, #414141 70%); */
    -webkit-transition: 0.4s;
    transition: 0.4s;
}
.label::before {
    position: absolute;
    content: "";
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #000000;
    background-image: linear-gradient(315deg, #000000 0%, #414141 70%);

    /* background-image: linear-gradient(130deg,
            #757272 10%,
            #ffffff 11%,
            #726f6f 62%); */
    left: 10px;
    -webkit-box-shadow: 0 2px 1px rgba(0, 0, 0, 0.3), 10px 10px 10px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.3), 10px 10px 10px rgba(0, 0, 0, 0.3);
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

/* Footer Styles */
footer {
    margin-top: 50px;
}
.navbar-links {
    margin: 25px;
    color: rgb(239, 255, 242);
    background-color: transparent;
    font-family: 'IBM Plex Mono', Arial Nova Light;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer  .navbar-links > a {
    color: inherit;
    text-decoration: none;
}
.footer  .navbar-links > a:hover {
    color: #000;
}
.link {
    display: block;
    width: 80vw;
    margin-left: 10px;
    margin-right: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    /* font-size: clamp(2em, 8vw, 7em); */
    font-size: 5vw;
    padding: clamp(0.25em, 1vw, 1em) clamp(1em, 4vw, 4em);
    position: relative;
}

.link:nth-child(3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(75deg, transparent, var(--blue), var(--light-blue-percent), var(--light-green));
}

.link:hover::before {
    transition: width 600ms ease;
    width: 100%;
}

.link-block {
    display: block;
}

/* End of File */