/*body {
  background: linear-gradient(
  to top right,
  rgb(255, 252, 255) 0%,      
  rgb(255, 244, 248) 14%,     
  rgb(253, 239, 246) 28%,    
  rgb(250, 234, 244) 42%,     
  rgb(248, 229, 242) 56%,     
  rgb(245, 224, 240) 70%,     
  rgb(242, 219, 238) 84%,     
  rgb(238, 214, 236) 100%     
);

   

}*/
/* ================================
   THEME TOGGLE BUTTON
================================ */
body,html{
   
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}
/* ======== THEME ICON ======== */
.theme-icon {
  width: 72px;
  height: 36px;
  border: 2px solid var(--accent, rgb(255,160,45));
  border-radius: 45px;
  background: none;
  cursor: pointer;
  font-size: 20px;
  
  
  
  transition: transform 0.35s ease, background-color 0.35s ease;
  color: var(--accent, rgb(255,160,45));
}

/* Icon appears via pseudo-element */
.theme-icon::before {
  content: "🌙";     /* Default = dark mode */
  display: block;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

/* ======== LIGHT MODE SYMBOL (SUN) ======== */
body.light .theme-icon::before {
  content: "☀️";
  transform: rotate(180deg);
}

/* Click effect */
.theme-icon:active {
  transform: scale(0.85);
}

/* ================================
   LIGHT MODE STYLES
================================ */
body.light {
background-color: white;

}

/* Text colors */
body.light .welcome-text,
body.light .menutext,
body.light .footer {
  color: #222;
}

body.light #head,
body.light .alt a,
body.light .navitem a,
body.light .menuh1,
body.light .type {
  color: #6b4bbd;
}

body.light .type2 {
  color: #ff8c2a;
}

/* Containers */
body.light .container {
  border: 1px solid #ccc;
  background-color: white;
}

/* Navbar border */
body.light #nav {
  border-bottom: 2px solid #ff8c2a;
}

/* Footer */
body.light .footer {
  background-color: rgba(0, 0, 0, 0.03);
}
   



body{
    background-color: rgb(40, 40, 40);
}



.navitem {
    overflow: hidden;
    float:left;
    padding-left: 25px;  
     -webkit-text-stroke: 1px solid whitesmoke;
     font-size: 20px;
}
.navitem a{
    text-decoration: none;
    color: rgb(170, 133, 220);
   
}
#navbar {
    float: right;
    display: inline;   
}
#head {
    float: left;
    color: rgb(170, 133, 220);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}
#logo {
    float: left;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 20px;
    padding-bottom: 5px;
}
#nav{
    padding-bottom: 60px;
    border-bottom: 2px solid rgb(255, 160, 45);
    position: sticky;
    
}
.intro{
    width: 400px;
    height: 430px;
    border-radius: 15px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.258);
    border: 1px solid rgb(255, 255, 255);;
    float: right;
    margin: 15px;
    
}
  .type {
    color:rgb(170, 133, 220); 
    font-size: 36px;
    font-style:bold;
    white-space: nowrap;
    overflow: hidden;
    width: 0ch; /* starts hidden */
    margin-bottom: 20px;
    animation:
      typing 1.5s steps(46, end) forwards,
      caret 1s step-end infinite;
  }

  @keyframes typing {
    to { width: 40ch; } /* total characters of the text */
  }
  @keyframes caret {
    50% { border-color: transparent; }
  }
  .type2 {
    color: rgb(255, 160, 45); 
    font-size: 24px;
    font-style:bold;
    white-space: nowrap;
    overflow: hidden;
    width: 0ch; /* starts hidden */
    animation:
      typing 1.5s steps(46, end) forwards,
      caret 1s step-end infinite;
        animation-delay: 1.5s; /* starts after the first animation */
  }

   .welcome-text {
    font-size: 20px;
    color: rgb(255, 255, 255);
    line-height: 1.6;
    padding-bottom: 50px;
}
  hr{
    border: none;
    height: 2px;
    background-color: rgb(255, 160, 45);
    margin: 40px 0;
  }
  .footer {
    text-align: center;
    padding: 20px 0;
    color: rgb(255, 255, 255);
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.08);
    border-top: 2px rgb(255, 160, 45); ;
}

/* ================================
   GLOBAL RESPONSIVENESS
================================ */
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================
   LARGE LAPTOPS / DESKTOPS ( >1200px )
================================ */
@media (min-width: 1200px) {
    .container {
        width: 70vw;
    }
    .menutext {
        font-size: 22px;
    }
}

/* ================================
   STANDARD LAPTOPS (992px–1200px)
================================ */
@media (max-width: 1200px) {
    #navbar ul li {
        padding-left: 15px;
    }
    .intro {
        width: 300px;
        height: auto;
    }
}

/* ================================
   TABLETS (768px–991px)
================================ */
@media (max-width: 991px) {

    #nav {
        text-align: center;
        padding-bottom: 20px;
    }

    #logo, #head, #navbar {
        float: none;
        display: block;
        margin: auto;
    }

    #navbar ul {
        padding: 0;
        margin-top: 10px;
    }

    .navitem {
        float: none;
        display: inline-block;
        padding: 10px 15px;
    }

    .intro {
        float: none;
        margin: 20px auto;
        display: block;
        width: 70%;
        height: auto;
    }

    .container {
        height: auto;
        text-align: center;
    }

    .container img {
        float: none;
        display: block;
        margin: auto;
        width: 250px;
        height: auto;
    }

    .menutext {
        font-size: 20px;
        margin-top: 20px;
    }
}

/* ================================
   PHONES ( < 768px )
================================ */
@media (max-width: 768px) {

    /* Nav collapses nicely */
    #nav {
        padding-bottom: 10px;
    }

    #head {
        font-size: 26px;
    }

    .navitem {
        padding: 8px 10px;
        font-size: 16px;
    }

    /* Intro image – full width */
    .intro {
        width: 90%;
        height: auto;
        margin: 20px auto;
        float: none;
        display: block;
    }

    /* Fix typing text overflow */
    .type,
    .type2 {
        font-size: 20px;
        white-space: normal;  /* Prevent overflow */
        border-right: none;
        width: auto;
              
    }

    .welcome-text {
        font-size: 18px;
        padding: 10px;
    }

    .container {
        width: 95vw;
        height: auto;
        padding: 15px;
    }

    .container img {
        width: 200px;
        height: auto;
        margin-bottom: 15px;
    }

    .alt {
        font-size: 26px;
        margin: 10px 0;
    }

    .menutext {
        font-size: 18px;
    }

    .menuh1 {
        font-size: 28px;
    }

    .footer {
        font-size: 16px;
    }
}

/* ================================
   VERY SMALL PHONES ( < 480px )
================================ */
@media (max-width: 480px) {

    #head {
        font-size: 22px;
    }

    .navitem {
        font-size: 14px;
        padding: 6px;
    }

    .container img {
        width: 160px;
    }

    .alt {
        font-size: 22px;
    }

    .menutext {
        font-size: 16px;
    }
}
/* Smooth theme transitions */
body,
.container,
.welcome-text,
.menutext,
.footer,
.navitem a,
#head,
.menuh1,
.alt a,
.type,
.type2,
hr {
  transition: 
    background-color 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease;
}
#now a{
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  text-decoration: none;
}

/* animated underline ONLY for #now */
#now a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;

  background: repeating-linear-gradient(
    90deg,
    rgb(255,160,45) 0%,
    rgb(255,160,45) 25%,
    rgb(170,133,220) 50%,
    rgb(170,133,220) 75%,
    rgb(255,160,45) 100%
  );

  background-size: 200% 100%;
  animation: chase 1.2s linear infinite;
}

@keyframes chase{
  0%{
    background-position: 0% 0%;
  }
  100%{
    background-position: -200% 0%;
  }
}

