/* Style sheet for Home page*/ 

/* 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: #4572c2;
    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);
    position: relative;
    width: 100%;
  }


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

  .Intro {
    color:Azure;  
    display: flex;
  }

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

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

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

  .Right-area {
    display: none; 
  }


  /*Area 2: 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: #000000;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: #ffffff;
    border: 2px solid #FACC15;
    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;
  }

  .list {
    list-style: none;
    padding-left: 0;
  }

  .list li {
    position: relative;
    padding-left: 1.5rem;
  }


    .contact {
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .l-social-icon {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .l-social-icon:hover {
     background-color: #FACC15;
      color: #062B1E;
    transform: translateY(-2px);
  }

/*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;
    }
    
    .Intro {
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

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

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

    .Intro li {
      font-size: 0.9rem;
    }

    .left-area {
      width: 96%;
      text-align: center;
      padding-left: 0;
    }
 
    .Right-area {
      width: 100%;
      margin: 10px 0px 0px 0px;
      text-align: center; 
      justify-content: center;
    }

    .Right-area img {
      height: 250px;
      width: 290px;
      margin: 0;
      align-items: center;
      justify-content: center;
    }

    .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);
    }

    .nav-btn {
      text-align: center;
      justify-content: center;
    }

    .footer-content {
      display: block;
      column-count: 2;
      margin-left: 15px;
      font-size: 0.6rem;
    }

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

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


/* Area 4: Certificates / Achievements slider (3 at a time) */

  .cert-slider {
    --cert-show: 3;
    --cert-gap: 14px;
    position: relative;
    max-width: 900px;
    width: calc(100% - 100px);
    margin: 0 auto;
  }

  .cert-viewport {
    overflow: hidden;
    border-radius: 12px;
    touch-action: pan-y;
  }

  .cert-track {
    display: flex;
    gap: var(--cert-gap);
    transition: transform 0.5s ease;
  }

  .cert-slide {
    flex: 0 0 calc((100% - (var(--cert-show) - 1) * var(--cert-gap)) / var(--cert-show));
    aspect-ratio: 4 / 3;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
  }

  .cert-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* keeps full certificate visible; use "cover" to fill the card */
    display: block;
    user-select: none;
    -webkit-user-drag: none;
  }

  .cert-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background-color: #ffffff;
    color: #1470af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
  }

  .cert-arrow:hover {
    background-color: #e6f1fa;
    transform: translateY(-50%) scale(1.08);
  }

  .cert-prev { left: -20px; }
  .cert-next { right: -20px; }

  .cert-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }

  .cert-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background-color: #ffffff;
    opacity: 0.35;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .cert-dot.on { opacity: 1; }

  @media (max-width: 640px) {
    .cert-slider { --cert-show: 2; width: calc(100% - 80px); }
  }

  @media (max-width: 420px) {
    .cert-slider { --cert-show: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    .cert-track { transition: none; }
  }
}