@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

a{
    color: white;
    text-decoration: none; /*we add this for hyperlink to remove the line under*/
}
.navbar{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 25px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;/* to secure that the navbar is always seen at the front*/
    visibility: hidden; 
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.2s;
}
@keyframes show-content{
    100%{
        visibility: visible;
        opacity: 1;
    }
}
.navbar .logo {
    font-size: 25px;
    font-weight: 600
}
.navbar ul {
    display: flex;

}
.navbar ul li {
    list-style: none;  /* remove the bullets from a list*/
    margin-left: 35px;
}
.navbar ul li a{
    font-size: 15px;
    font-weight: 500;
    transition: .5s;
}
.navbar ul li:hover a,
.navbar ul li.active a{
    color: rgb(241, 95, 78);
}
.home{
    display: flex;
    align-items: center;
    gap: 75px;
    height: 100vh;
    padding: 60px 9% 0;
    color: #fff;
    visibility: hidden; 
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
}
.home-info h1{
    font-size: 45px;

}
.home-info h2{
    display:inline-block ;
   font-size: 25px;
   margin-top: 10px; 
   margin-bottom: 10px;
}
.home-info h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .7px rgb(241, 95, 78);
    animation: show-text 16s linear infinite;
    animation-delay: calc(-4s * var(--i));
}

@keyframes show-text{
    25%,100%{
        display: none;
    }
}
.home-info h2 span::before{
    content: attr(data-text);
    position: absolute;
    width: 0;
    border-right:2px solid rgb(241, 95, 78);
    color: rgb(241, 95, 78);
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}
@keyframes fill-text{
    10%,100%{
        width: 0;
    }
    70%,90%{
        width: 100%;
    }
}
.home-info h2 p {
    font-size: 16px;
    margin: 10px 0 25px;
}
.home-info .btn-sci{
    display: flex;
    align-items: center;
}
.btn{
    display: inline-block;
    padding: 10px 30px;
    margin-top: 20px; 
    background: rgb(241, 95, 78);
    border: 2px solid rgb(241, 95, 78);
    border-radius: 40px;
    box-shadow: 0 0 10px rgb(241, 95, 78);
    font-size: 16px;
    color: black;
    font-weight: 600;
    transition: .5s; 
}
.btn:hover{
    background: transparent;
    color: rgb(241, 95, 78);
    box-shadow: none;
}
.home-info .btn-sci .sci{
    margin-left: 20px;

}
.home-info .btn-sci .sci a{
    display: inline-flexs;
    padding: 8px;
    border: 2px solid rgb(241, 95, 78);
    border-radius: 50%;
    font-size: 20px;
    color: rgb(241, 95, 78);
    margin: 0 8px;
    transition: .5s;
}
.home-info .btn-sci .sci a:hover{
     background: rgb(241, 95, 78);
     color: black;
     box-shadow: 0 0 10px rgb(241, 95, 78);
}
.home-img .img-box{
    position: relative;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.home-img .img-box::before,
.home-img .img-box::after{
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(transparent, transparent, transparent, rgb(241, 95, 78));
    transform: rotate(0deg); /*initial state of the animation at 0 degrees*/
    animation: rotate-border 10s linear infinite;
}
.home-img .img-box::after{
    animation-delay: -5s;
}
@keyframes rotate-border{
    100%{
        transform: rotate(360deg);/*final state of the animation at 360 degrees*/
    }
}
.home-img .img-box .img-item{
    position: relative;
    width: 100%;
    height: 100%;
    background: black;
    border-radius: 50%;
    border: .1px solid black;
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}
.home-img .img-box .img-item img{
    position: absolute;
    display: block;
    width: 85%;
    object-fit: cover;
    mix-blend-mode: lighten;
}
.bars-animation{
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -2;
}
.bars-animation .bar{
    width: 100%;
    height: 100%;
    background: black;
    transform: translateY(-100%);
    animation: show-bars .5s ease-in-out forwards;
    animation-delay: calc(.1s * var(--i));
}
@keyframes show-bars{
    100%{
        transform: translateY(0%);
    }
}
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: rgb(241, 95, 78);
    cursor: pointer;
}
.highlight {
    color: rgb(241, 95, 78);
}

/* -------------------------
   RESPONSIVE QUERIES (paste at end)
   Keeps your design exactly as-is; just scales + stacks
   ------------------------- */

/* Large desktops ( >1200px ) */
@media (min-width: 1200px) {
  .home { gap: 90px; padding-top: 70px; }
  .home-info h1 { font-size: 52px; }
  .home-info h2 { font-size: 28px; }
  .home-img .img-box { width: 30vw; height: 30vw; }
}

/* Desktop / small laptop (992px—1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar { padding: 20px 6%; }
  .home { gap: 60px; padding-top: 64px; }
  .home-info h1 { font-size: 44px; }
  .home-info h2 { font-size: 24px; }
  .home-img .img-box { width: 34vw; height: 34vw; }
}

/* Tablet / large phones in landscape (768px—991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar { padding: 18px 6%; }
  .navbar .logo { font-size: 22px; }
  .navbar ul { gap: 14px; }
  .home {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
    padding: 80px 6% 0;
    height: auto;
  }
  .home-info h1 { font-size: 38px; }
  .home-info h2 { font-size: 20px; display:block; -webkit-text-stroke: .6px rgb(241,95,78); }
  .home-info h2 span { animation-duration: 14s; }
  .home-img .img-box { width: min(420px, 44vw); height: min(420px, 44vw); }
  .home-info .btn { padding: 10px 26px; }
}

/* Mobile phones (up to 767px) */
@media (max-width: 767px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        background: #222;
        position: absolute;
        top: 56px;
        right: 5%;
        width: 160px;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.12);
        z-index: 999;
    }
    .navbar ul.show {
        display: flex;
    }
    .navbar-toggle {
        display: block;
    }
    .home {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 36px;
        padding: 80px 6% 0;
        height: auto;
    }
    .home-info {
        order: 1;
    }
    .home-img {
        order: 2;
        margin-top: 32px;
    }
}

/* Very small phones (<=420px) */
@media (max-width: 420px) {
  .home-info h1 { font-size: 26px; }
  .home-info h2 { font-size: 16px; -webkit-text-stroke: .55px rgb(241,95,78); }
  .navbar { padding: 12px 4%; }
  .home-img .img-box { width: min(280px, 70vw); height: min(280px, 70vw); }
  .home-info .btn { padding: 10px 18px; font-size: 14px; }
}

/* Accessibility / interaction tweaks for touch devices */
@media (pointer: coarse) {
  .navbar ul li a { padding: 8px 6px; }
  .btn { padding: 14px 26px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .home-img .img-box::before,
  .home-img .img-box::after { animation: none !important; }
  .home-info h2 span::before { animation: none !important; border-right: none !important; width: 100% !important; }
}
