@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --text: #bec3d1;
    --maintext: #d4dcf5;
    --background: #0b1018;
    --primary: #195DE9;
    --secondary: #182234;
    --accent: #6f92da;
    scroll-behavior: smooth !important;
}

* {
    font-family: Inter, sans-serif;
    color: var(--text);
    
}

body {
    background: rgb(24, 34, 52);
    cursor: none;
    background: rgb(24, 34, 52);
    background: -moz-radial-gradient(circle, rgba(24, 34, 52, 1) 72%, rgba(11, 16, 24, 1) 100%) !important;
    background: -webkit-radial-gradient(circle, rgba(24, 34, 52, 1) 72%, rgba(11, 16, 24, 1) 100%) !important;
    background: radial-gradient(circle, rgba(24, 34, 52, 1) 72%, rgba(11, 16, 24, 1) 100%) !important;
}

a {
    cursor: none;
    text-decoration: none !important;
    color: var(--text) !important;
}

.intro>h1 {
    font-size: 3em;
    font-weight: 800;
    color: var(--maintext);

}

.typewriter-wrapper {
    display: inline-block; /* This wrapper ensures the width fits the content */
  }
  
.typewriter {
    display: inline-block;
    margin: 0 auto;
    overflow: hidden;
    /* Ensures the text is hidden initially */
    border-right: 4px solid transparent;
    /* Simulates the typing cursor */
    white-space: nowrap;
    /* Prevents text from wrapping */
    opacity: 0;
    animation: typing 1.8s steps(15) forwards, blink-caret 2s steps(15) forwards;
    animation-delay: .5s; 
}


.intro>h3 {
    color: var(--primary);
}


.link-center {
    justify-content: center;
    display: flex;
}


.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    max-height: 100vh;
    animation: fadeInMoveLeft 1s ease-in-out;
}

.h100 {
    min-height: fit-content;
}

.mybtn {
    background-color: var(--primary);
    border-radius: 25px;
    padding: 2% 15%;
    text-decoration: none;
    width: 75% !important;
    margin-top: 0em;
    font-weight: 600;
    font-size: 1.4rem;
}

.mybtn:hover {
    box-shadow: 0 0 15px 10px var(--secondary),
        0 0 25px 20px var(--secondary);
}

.links {
    padding: 0% 5%;
    align-items: center !important;
}

.links>.col-4>a:hover {
    box-shadow: 0 0 15px 10px var(--secondary),
        0 0 25px 20px var(--secondary);
}

/* Style for the navigation menu */

.link a {
    display: flex;
    align-items: center;
    margin: .8em !important;
    font-size: 1rem;
}

/* Style for the horizontal line (indicator) */
.link a::before {
    content: "";
    width: 8px;
    height: 2px;
    border-radius: 25px;
    background-color: #f8f7f7;
    margin-right: 10px;
    transition: width 0.3s ease;
}

/* Hover effect for the line */
.link a:hover::before,
.link a.active::before {
    width: 16px;
    background-color: var(--primary);
    box-shadow: 0 0 15px 10px var(--secondary),
        0 0 25px 20px var(--secondary);

}

.mainsection {
    text-align: justify;
    /* border: 1px solid red; */
    padding-top: 2rem;
    animation: fadeIn 1s ease-in-out !important;
}

.section h2 {
    color: var(--maintext) !important;
    font-weight: 600;
}

.section .h3 {
    padding-left: 2vw;
    font-size: 0.8rem;
}

.section .h3::before {
    content: "<start>";
    font-size: 14px;
    bottom: 100px;
    margin-left: -15px;
}

.section .h3::after {
    content: "</end>";
    font-size: 14px;
    margin-left: -15px;
}

.text-link {
    color: white !important;
    font-weight: 800;
}
.text-link::after{
    content: "↗";
    font-size: .8rem;
    color: var(--primary);
}
.text-link:hover {
    color: var(--primary) !important;
}

b {
    color: white !important;
}

.h100 {
    min-height: 100vh;
    display: grid;
    place-content: center;
}

.scroll {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-down {
    height: 50px;
    width: 30px;
    border: 2px solid var(--accent);
    position: absolute;
    border-radius: 50px;
}

.scroll-down::before,
.scroll-down::after {
    content: "";
    position: absolute;
    top: 20%;
    left: 50%;
    height: 10px;
    width: 10px;
    transform: translate(-50%, -100%) rotate(45deg);
    border: 2px solid var(--accent);
    border-top: transparent;
    border-left: transparent;
    animation: scroll-down 1s ease-in-out infinite;
}

.scroll-down::before {
    top: 30%;
    animation-delay: 0.3s;
    animation: scroll-down 1s ease-in-out infinite;
}


.text-card {
    background: rgba(25, 93, 233, 0.13);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.7px);
    -webkit-backdrop-filter: blur(7.7px);
    border: 1px solid rgba(25, 93, 233, 0.75);

    padding: 1% 2%;
    margin: 1%;

    box-shadow: var(--background) 0px 2px 8px;
}

.text-card p {
    font-size: .7rem;
    margin-bottom: .1rem;
}

.text-card h5 {
    color: var(--maintext) !important;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: start;
}

.text-card h5 ::after {
    content: "/>";
}

.scrollup {
    right: 2%;
    position: absolute;
    bottom: -300%;
}

.mobilescroll {
    display: none;
}


  /* Glassmorphism style */
  .glass-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .arrow-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
  }

  .arrow-button:hover {
    color: #0056b3;
  }

  .arrow-icon {
    font-size: 1.2rem;
    margin-left: 5px;
    transition: transform 0.2s ease;
  }

  .arrow-button:hover .arrow-icon {
    transform: translateX(5px);
  }

  .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
  }

  .card-desc {
    font-size: 1rem;
    color: #ddd;
  }

@media (max-width: 992px) {
    .row {
        padding: 5% !important;
    }

    .intro {
        padding: 3% !important;
    }

    .sticky {
        max-height: 50vh !important;
        top: 1px !important;
        position: relative !important;
        padding: 5% !important;
        animation: fadeUp 1s ease-in-out !important;
        margin-bottom: 75%;
    }

    .mybtn {
        margin-bottom: 5% !important;
    }

    .mainsection {
        margin-top: 8vh !important;
        animation: fadeUp 1s ease-in-out !important;
    }

    .section {
        margin-top: 4vh !important;
        padding: 1% !important;
    }

    .scrollup {
        display: none;
    }

    .mobilescroll {
        display: block !important;
    }

    .text-card {
        margin-bottom: 2vh !important;
    }

    .text-card p {
        font-size: .8rem !important;
    }

    .typewriter {
        overflow: auto;
        white-space: wrap;
    }
}


@media (min-width: 1200px) and (min-height: 768px) {
    .link a {
        margin: 2rem;
        font-size: 1.6rem;
    }

    p {
        font-size: 1.2rem;
    }

    .mybtn {
        margin-top: 1em !important;
    }

    .section p {
        font-size: 1em !important;
    }

    .links {
        margin-top: 2em !important;
    }

    .sticky {
        padding-top: 15vh;
    }
    .glass-card {
        width: 130%;
    }
}

@keyframes scroll-down {
    0% {
        top: 20%;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    60% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

@keyframes fadeInMoveLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}


@keyframes blink-caret {
    0%, 50%, 100% {
      border-color: transparent;
    }
  
    25%, 75% {
      border-color: var(--primary);
    }
  }
  
  @keyframes typing {
    0%{
      width: 0;
      opacity: 0.5;
    }
  
    100% {
      opacity: 1;
      width: 100%;
    }
  }
