/* Style sheet for Home page*/ 

/*Loading Animation*/

  #loader {
    position: fixed;
    inset: 0;
    background: #031C14;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  #loader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FACC15;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  #loader.hidden {
    opacity: 0;
    visibility: hidden;
  }

/* Basic body styling*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  body {
    background-color: #d8dcdb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0px;
    border: none;
    }

/* Header: consist of two rows */    

  .top-section {
    padding: 30px 40px 20px 40px;
  }

/* Row 1: Name + Social Icons */

  .header-main-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

/* Social Links (Right side of Row 1) */
  .social-links {
    display: flex;
    gap: 10px;
  }

  .social-icon {
    color: #ffffff;
    font-size: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .social-icon:hover {
    background-color: #ffffff;
    color: #4572c2;
    transform: translateY(-2px);
  }
/* Group hamburger + name together on the left */

  .name-group {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

/* Hamburger icon — hidden on desktop by default (Appears in Mobile)*/

  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
  }

  .hamburger:hover {
    background-color: #ffffff;
  }

  .hamburger span {
    width: 16px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    margin: 0 auto;
    transition: all 0.3s ease;
  }

  .hamburger:hover span {
    background-color: #4572c2;
  }

/* Animation in Hamburger Icon:  Morph into an X when open */

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

/* Row 2: Navigation Bar Beneath Row 1 */

  .nav-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Separator line between rows */
    flex-wrap: wrap;
  }

  .nav-btn {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    gap: 10px;
    align-items: center;
  }

  .nav-btn:hover,
  .nav-btn.active {
    background-color: #ffffff;
    color: #1470af;
    transform: translateY(-2px);
  }

/* Body section */

/* Main page container */

  .page-frame {
    background-color: #e3e3e3;
    padding: 20px;
    border: 0px solid #c8c8c8;
    max-width: 900px;
    width: 100%;
  }

  .portfolio-container {
    background-color: #1470af;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: relative;
    width: 100%;
  }

/* Area 1: Landing Area*/

  .wel {
    display: flex;
    flex-wrap: wrap;
  }  

/*Landing Area's left part */

  .left-section {
    margin-left: 35px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    font-size: clamp(1.5rem, 5vw, 3rem);
    line-height: 1.6;
    padding-top: 10px;
  }

  .left-section p {
      max-width: 750px;
    }

/* Row 1: with hand shake Animation */


  .hand {
    width: 25px;
    height: 25px;
    transform-origin: 78% 88%; /* pivot point = the wrist */
    animation: wave 1.2s infinite;
    margin-top: 3px;
}

@keyframes wave {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(14deg); }
  20%  { transform: rotate(-8deg); }
  30%  { transform: rotate(14deg); }
  40%  { transform: rotate(-4deg); }
  50%  { transform: rotate(10deg); }
  60%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/*Row 2: contains no seprate styling */

/*Row 3: Text typing Animation */

.typing-wrap {
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 700;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: left;
  flex-wrap: wrap;
  gap: 4px;
  word-break: break-word;
  margin: 20px 0 20px 0;
  }

  #typed-text {
    color: #ffffff;
    white-space: pre;
    margin-left: 10px;
  }

  .cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: #FACC15;
    margin-left: 2px;
    animation: blink 0.8s steps(1) infinite;
  }

/*Landing Area's Right part */

  .right-section {
    margin-left: 200px;
  }

  .right-section img {
    height: 480px; 
    width: 500px;
    margin-bottom: 100px;
  }

/* Area 2: Introduction with Image on Right*/

  .Intro {
    color:Azure; 
    background-color: #1470af; 
    display: flex;
    flex-wrap: wrap;
  }

  .left-area {
    width: 60%;
    font-size: 1.75rem;
    text-align: center;
    display: flex; 
    flex-direction: column; 
    gap: 18px; 
    margin-left: 20px;
  }

  .left-area h1 {
    color: rgba(255, 255, 255, 0.8); 
    font-size: 3rem;
  }

  .left-area b {
    color: rgba(255, 255, 255, 1)
  }

  .Right-area {
    margin-left: 50px;
  }

  .Right-area Img {
    height: 200px; 
    width: 150px; 
    border: 1px solid Azure; 
    margin: 50px auto auto 220px;
  }

  .profile-img:hover {
    transform: translateY(-2px);
  }

  /*Area 3: My skills */

  .skill-set {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}


  .skill {
    color: #1470af;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    gap: 10px;
    align-items: center;
  }

  .skill img {
    width: 28px;
    height: 28px;
  }

  .skill:hover {
    padding: 7px 18px;
    transform: translateY(-2px);
  }

  .contact {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  #li {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
  }

  #li:hover {
    color: rgba(255, 255, 255, 1);
  }
  
/*Footer*/

    .footer {
      background-color: #2C3E50;
      color: #ffffff;
      text-decoration: none;
      border-top: 2px solid #ffffff;
      padding-top: 10px;
    }
    .footer-content {
      display: flex;
      text-decoration: none;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    .c {
      display: flex;
      flex-direction: column;
      width: 25%;
      padding: 0% 2%;
      gap: 5px;
    }

    .touch {
      display: flex;
      gap: 10px;
    }

    .footer-icon {
      color: #ffffff;
      font-size: 1rem;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .footer-icon:hover {
      background-color: #ffffff;
      color: #2C3E50;
      transform: translateY(-2px);
    }

    .footer-logo {
      color: rgba(255, 255, 255, 0.75);
      text-decoration: none;
      margin-left: 10px;
    }

    .footer-logo:hover {
      color: rgba(255, 255, 255, 1);
      text-decoration: underline;
    }

    .last-row {
      display: flex;
      justify-content: space-between;
      padding: 0px 40px 25px 40px;
      font-size: 1rem;
    }

/* Mobile Responsiveness */

  @media (max-width: 768px) {
    .header-main-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }

    .profile-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .wel {
      flex-direction: column;
      margin: none;
    }

    .wel .left-section {
      margin-left: 0;
      margin-bottom: 20px;
      text-align: center;
      padding-bottom: none;
    }

    .wel .right-section {
      margin: 0;
      text-align: center;
    }

    .right-section img {
      height: 250px;
      width: 290px;
      margin: 0;
    }

    .Row-1 {
      justify-content: center;
    }

    .typing-wrap {
      font-size: clamp(1.2rem, 5vw, 2rem);
      flex-direction: column;
      margin-bottom: 10px;
    }

    .Intro {
      flex-direction: column-reverse;
      align-items: center;
      text-align: center;
      margin: none;
    }

    .Intro h1 {
      font-size: 1.5rem;
    }

    .Intro p {
      font-size: 1rem;
    }

    .left-area {
      width: 96%;
      justify-content: center;
      margin-left: 0;
    }

    .Right-area {
      margin: 0;
      text-align: center;
    }

    .Right-area img {
      height: 150px;
      width: 110px;
      margin: 20px auto 20px auto;
    }

    .hamburger {
      display: flex;
    }

    .nav-bar {
      flex-direction: column;
      max-height: 0;
      overflow: hidden;
      gap: 8px;
      padding-top: 0;
      border-top: none;
      margin-bottom: 0;
      transition: max-height 0.35s ease, padding-top 0.35s ease, margin-bottom 0.35s ease;
    }

    .nav-bar.active {
      max-height: 400px;
      padding-top: 15px;
      margin-bottom: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
        .footer-content {
      display: block;
      column-count: 2;
      margin-left: 15px;
    }

    .c {
      width: 100%;
      break-inside: avoid;
      margin-bottom: 20px;
      padding: 0;
    }

    .last-row {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
    }

    .nav-btn {
      width: 100%;
      align-items: center;
      justify-content: center;
    }
  }

/* Portfolio theme/layout overrides (dark forest green + white + yellow). */
:root { --portfolio-bg: #031C14; --portfolio-green: #062B1E; --portfolio-yellow: #FACC15; --portfolio-white: #F8FAFC; }
html { min-height: 100%; }
body { display: block; min-height: 100vh; background: var(--portfolio-bg); color: var(--portfolio-white); overflow-x: hidden; }
.portfolio-container { width: min(100%, 1440px); min-height: 100vh; margin: 0 auto; background: transparent; color: var(--portfolio-white); box-shadow: none; }
.typing-wrap { margin-bottom: 0; }
.right-section { display: none; }
.Intro { color: var(--portfolio-white); background: rgba(6,43,30,.72); border-top: 1px solid rgba(250,204,21,.22); border-bottom: 1px solid rgba(250,204,21,.14); }
.left-area h1 { color: var(--portfolio-white); }
.left-area b { color: var(--portfolio-yellow); }
#li { color: #FDE68A; }
.footer { background: rgba(3,28,20,.92); border-top-color: rgba(250,204,21,.35); }
.nav-btn:hover, .nav-btn.active { color: #062B1E; background: var(--portfolio-yellow); border-color: var(--portfolio-yellow); }
.social-icon:hover, .hamburger:hover { color: #062B1E; background: var(--portfolio-yellow); }
.hamburger:hover span { background: #062B1E; }
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .typing-wrap { flex-direction: row; margin-bottom: 0; }
  .left-section { margin-left: 0; }
  .right-section { display: none; }
  .Intro { flex-direction: column-reverse; align-items: stretch; }
  .left-area { width: 100%; margin-left: 0; text-align: left; }
  .Right-area { margin: 0; }
  .footer-content { column-count: 1; }
  .c { width: 100%; }
}
