@import url('https://fonts.googleapis.com/css2?family=Akaya+Telivigala&display=swap');

:root {
    --primary-color: rgb(255, 92, 92);
    --primary-variant: #ff2d2d;
    --secondary-color: #1b9999;
    --on-primary: rgb(250, 250, 250);
    --on-background: rgb(66, 66, 66);
    --on-background-alt: rgba(66, 66, 66, 0.7);
    --background: rgb(255, 255, 255);
    --box-shadow: 0 5px 20px 1px rgba(0, 0, 0, 0.5);
    --image: url("./img/YenBG.png");
  }
  
  [data-theme="dark"] {
    --primary-color: rgb(114, 14, 236);
    --primary-variant: #6c63ff;
    --secondary-color: #03dac5;
    --on-primary: #000;
    --on-background: rgba(255, 255, 255, 0.9);
    --on-background-alt: rgba(255, 255, 255, 0.7);
    --background: #121212;
    --image: null;
  }

html{
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-y: hidden;
}
body{
    margin: 0;
    color: var(--on-background);
    background-color: var(--background);
    background-image: var(--image);
    background-attachment: fixed;
    background-size: cover;
    font-family: Akaya Telivigala, sans-serif;
}
section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

#favicon:hover {transform: scale(2);}
h1 {
    font-size: 100px;
    margin-bottom: 0;
    font-family: Akaya Telivigala, sans-serif;
  }
  
  h2 {
    font-size: 32px;
    font-weight: normal;
    color: var(--on-background-alt);
  }
  
  /* Navigation */
  nav {
    z-index: 10;
    position: fixed;
    font-size: 24px;
    letter-spacing: 3px;
    padding: 25px;
    width: 100vw;
    background: rgb(255 255 255 / 50%);
  }
  
  a {
    margin-right: 25px;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    font-weight: bold;
  }
  
  a:hover,
  a:focus {
    color: var(--on-background);
    border-bottom: 3px solid;
  }
  
  /* Home Section */
  .title-group { text-align: center; }
  
  /* About Section */
  .about-container { display: flex; max-width: 99%;}
  
  .image-container {
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 5px 10px;
    margin: 1rem;
    width: auto;
    text-align: center;
    background: var(--background);
    box-shadow: var(--box-shadow);
  }
  .image-container:hover{
    transform: scale(1.3);
  }
  
  img:not(#favicon) {
    height: 300px;
    width: 300px;
  }
  
  /* Projects Section */
  .buttons {
    margin-top: 15px;
    margin-bottom: 50px;
  }
  
  button {
    min-width: 100px;
    height: 40px;
    cursor: pointer;
    border-radius: 10px;
    margin-right: 10px;
    border: 2px solid var(--primary-color);
    font-size: 15px;
    outline: none;
  }
  
  button:disabled {
    opacity: 0.4;
    cursor: default;
  }
  
  button:hover:not(.outline) {filter: brightness(110%); }
  
  .primary {
    background: var(--primary-color);
    color: var(--on-primary);
  }
  
  .secondary { border: 2px solid var(--secondary-color); }
  
  .secondary,
  .secondary:hover,
  .outline.secondary:hover {
    background: var(--secondary-color);
    color: var(--on-primary);
  }
  
  .outline { background: var(--background); color: var(--on-background);}
  
  .outline:hover { background: var(--primary-color); color: var(--on-primary);}
  
  .text-box {
    /* width: 40%; */
    text-align: justify;
    background: rgb(0 0 0 / 50%);
    color: var(--on-primary);
    border-radius: 10px;
    padding: 10px;
  }
  
  p { margin: 0; line-height: 15px; }
  
  /* Contact Section */
  .fab{
    font-size: 3rem;
    margin-right: 50px;
    cursor: pointer;
    color: var(--primary-color);
  }
  
  .fab:hover { color: var(--on-background);}
  
  /* Dark Mode Toggle */
  .theme-switch-wrapper {
    display: flex;
    align-items: center;
    z-index: 100;
    position: fixed;
    right: 25px;
    top: 30px;
  }
  
  .theme-switch-wrapper span {margin-right: 10px; font-size: 1rem; }
  
  .toggle-text {
    position: relative;
    top: -4px;
    right: 5px;
    color: var(--on-background);
  }
  
  .theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
  }
  
  .theme-switch input {display: none;}
  
  .slider {
    background: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
  }
  
  .slider::before {
    background: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 26px;
  }
  
  input:checked + .slider { background: var(--primary-color);}
  
  input:checked + .slider::before { transform: translateX(26px);}
  
  .slider.round {border-radius: 34px;}
  
  .slider.round::before {border-radius: 50%;}
  
  .fas {font-size: 30px; margin-right: 5px;}

  .td{
    padding: 0.5rem 2rem;
  }
  .typingText{
      overflow: hidden; /* Ensures the content is not revealed until the animation */
      border-right: .15em solid orange; /* The typwriter cursor */
      line-height: 5.5ch;
      white-space: nowrap; 
      margin: 0 auto; /* Gives that scrolling effect as the typing happens */
      /* letter-spacing: .15em; Adjust as needed */
      animation: 
        typing 8.5s steps(40, end),
        blink-caret .75s step-end infinite;
    }
    
    /* The typing effect */
    @keyframes typing {
      from { width: 0 }
      to { width: 100% }
    }
    
    /* The typewriter cursor effect */
    @keyframes blink-caret {
      from, to { border-color: transparent }
      50% { border-color: orange; }
    }
    iframe {
margin: 0px; 
padding: 0px; 
height: 80vh;
width: 90vw; 
border: none;
}
#slideIn{
  animation-duration: 26s;
  animation-name: slidein;
  /* animation-delay: 2s; */

}

@keyframes slidein {
  from {
    margin-left: 0%;
    width: 400%;
  }

  to {
    margin-left: 100%;
    width: 100%;
  }
}
