/* General Styling */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh; /* Ensure full height */
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #000000;
    margin-top: 2px; 
  }


/* Navigation Bar Styling - Matches Home Page */
nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    top: 0;
    right: 54px;
    width: 10%;
    z-index: 100;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 20px 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 19.1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

nav ul li a:hover {
    color: #01adec;
    border-bottom: 2px solid #f54242;
}

/* Responsive Nav for Mobile */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    nav.active ul {
        display: flex;
    }
}

/* ends*/ 
/* Navigation Styling */


/* Flexbox Layout for About Section */
.about-container {
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: space-around; /* Add space between image and text */
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}


/* Image Styling */
.about-image img {
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #fff;
}

/* Text Content Styling */
.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    max-width: 600px;
    text-align: left; /* Ensure proper alignment */
}

.about-text {
    margin-bottom: 20px;
    line-height: 1.5; /* Improve text readability */
} 

/* Glowing Box Styling */
.glowing-box {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    background: linear-gradient(145deg, #1a1a1a, #000000);
    box-shadow: 0 0 15px hsla(268, 91%, 43%, 0.303), 0 0 25px rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.glowing-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgb(6, 14, 232), 0 0 30px cyan;
}

/* Section Headers */
.section-header {
    font-size: 2rem;
    color: #01adec;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgb(4, 0, 255), 0 0 20px cyan;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Icons for Sections */
.section-header img {
    width: 40px;
    height: 40px;
}

/* Paragraph Text */
.glowing-box p {
    font-size: 1.2rem;
    color: #ddd;
    line-height: 1.8;
}

.experience-bar {
    margin-bottom: 20px;
    text-align: left;
    max-width: 600px;
}

.experience-bar label {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 6px;
    color: #eee;
}

.bar {
    background-color: #222;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 0 5px #111;
}

.bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #02749d, #907601);
    transition: width 0.8s ease;
}


.experience-item {
    margin-bottom: 20px;
}

.bar {
    width: 100%;
    background: #333;
    border-radius: 20px;
    overflow: hidden;
    height: 20px;
    position: relative;
}

.progress {
    height: 100%;
    background: limegreen;
    width: 0%;
    color: black;
    font-weight: bold;
    font-size: 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1.5s ease-in-out;
    position: relative;
}

/* Tooltip style */
.progress:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 0 10px #01adec;
}

.edu-grid {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 30px;
}

.edu-card {
    background: #111;
    padding: 15px;
    border-radius: 40px;
    width: 100px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.08);
}

.edu-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #01adec;
}

.edu-card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Popup styling */
.edu-popup {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.edu-popup.hidden {
    display: none;
}

.edu-popup-content {
    background: #111;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    color: white;
    text-align: center;
    box-shadow: 0 0 20px #01adec88;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}
 
.skill-timeline {
    border-left: 3px solid #00cfff;
    padding-left: 20px;
    margin-top: 20px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #00cfff;
    text-shadow: 0 0 10px #00cfff88;
}

.skill-item p {
    margin: 5px 0 0 10px;
    color: #ccc;
    font-size: 1rem;
}

.skill-item .highlight {
    font-weight: 600;
    color: #00cfff;
}

.dot {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* =============================
   CRICKET (stable, responsive)
   Works with .cricket or .cricket-tab
   ============================= */

   .cricket, .cricket-tab {
    background:
      radial-gradient(1200px 600px at 20% -10%, rgba(0,153,255,.12) 0, rgba(0,0,0,0) 60%),
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
    border-radius: 20px;
    padding: 28px 24px;
    margin-top: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  
  .cricket .wrap, .cricket-tab .wrap {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* ---------- Header ---------- */
  .cr-head {
    display: grid;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
  }
  
  .cr-head .eyebrow {
    color: #7fd3ff;
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 0 0 6px;
  }
  
  .cr-head h2 { font-size: clamp(1.8rem, 2.2vw, 2.4rem); margin: 0 0 6px; }
  .cr-head .lead { color: #c9d4df; margin: 0; line-height: 1.6; }
  
  .head-cta { margin-top: 8px; }
  .btn.btn--primary{
    background: linear-gradient(135deg, #24a6ff, #0f89ff);
    color:#001018; font-weight:600; border:0; border-radius:12px;
    padding:12px 16px; display:inline-flex; align-items:center; gap:8px;
    box-shadow:0 6px 18px rgba(36,166,255,.25);
    transition: transform .15s ease, box-shadow .2s ease;
  }
  .btn.btn--primary:hover{ transform: translateY(-1px); box-shadow:0 10px 24px rgba(36,166,255,.35); }
  
  /* ---------- Generic card ---------- */
  .cr-card{
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  }
  
  /* ---------- Two-column area (profile + stats) ---------- */
  .cr-grid{
    display: grid;
    gap: 18px;
  }
  
  /* ===== Desktop/tablet ≥ 900px: avatar column + content column ===== */
  @media (min-width: 900px){
    .cr-head{ grid-template-columns: 1fr auto; }
  
    .cr-grid{
      grid-template-columns: minmax(450px, 420px) 1fr;  /* Profile left, stats right */
      align-items: start;
    }
  
    .cr-card.profile{
      display: grid;
      grid-template-columns: 180px 1fr;   /* photo | text */
      gap: 16px;
      padding: 18px;
    }
  
    .profile-photo{
      width: 180px; height: 180px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06) inset;
    }
  }
  
  /* ===== Phone/tablet < 900px ===== */
  @media (max-width: 4000px){
    .cr-card.profile{
      display: grid;
      grid-template-columns: 110px 1fr;
      align-items: center;
      gap: 55px;
      padding: 20px;
    }
    .profile-photo{
      width: 100px; height: 110px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
    }
  }
  
  /* ---------- Photo ---------- */
  .profile-photo img{
    width: 100%; height: 100%;
    border-radius: 34px;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
  }
  
  /* ---------- Profile text ---------- */
  .profile-body{ min-width: 0; } /* allow wrapping in grid */
  .profile-body .name{ margin: 0; font-size: 1.25rem; }
  .profile-body .role{ margin: 4px 0 12px; color:#9fb3c8; }
  
  .profile-body .facts{
    list-style:none; padding:0; margin:0;
    display:grid; gap:6px;
  }
  .profile-body .facts li{ color:#cfe6ff; line-height:1.55; }
  .profile-body .facts li span{ color:#7fd3ff; margin-right:6px; font-weight:600; }
  
  .chips{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
  .chip{
    font-size:.8rem; padding:6px 10px; border-radius:999px;
    background: rgba(127,211,255,.12); border:1px solid rgba(127,211,255,.25); color:#cfe6ff;
  }
  
  /* ---------- Stats & Highlights ---------- */
  .cr-card.right{ padding:16px; }
  
  .stats-grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap:12px;
  }
  .stat{
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
  }
  .stat .num{ font-size:1.3rem; font-weight:700; color:#e9f2ff; }
  .stat .lbl{ font-size:.85rem; color:#9fb3c8; }
  
  .divider{
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);
    margin:16px 0;
  }
  
  .highlights h4{ margin:0 0 8px; }
  .highlights ul{ margin:0; padding-left:18px; color:#cfe6ff; }
  .highlights .note{ color:#9fb3c8; font-size:.85rem; margin-top:8px; }
  
  /* ---------- Achievements ---------- */
  .achievements{ padding:16px; margin-top:16px; }
  .achievements h4{ margin:0 0 12px; }
  .ach-grid{ display:grid; gap:12px; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ach{
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 14px;
  }
  .ach .tag{
    display:inline-block; font-size:.8rem; background:#ffe45e; color:#0c0f14;
    padding:4px 10px; border-radius:999px; margin-bottom:10px;
  }
  
  /* ---------- Gallery ---------- */
  .gallery{ padding:18px; margin-top:16px; }
  .gallery h4{ margin:0 0 12px; }
  .gal-grid{ display:grid; gap:12px; grid-template-columns: repeat(4, minmax(0,1fr)); }
  .gal-grid img{
    width:100%; aspect-ratio:4/3; object-fit:contain;
    border-radius:12px; border:1px solid rgba(255,255,255,.06);
    box-shadow:0 6px 18px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .gal-grid img:hover{ transform: translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.35); }
  
  /* ---------- Small screens: tighten grids ---------- */
  @media (min-width: 768px) and (max-width: 1023px){
    .stats-grid{ grid-template-columns: repeat(4, 1fr); }
    .gal-grid{ grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 767px){
    .cricket, .cricket-tab{ padding:22px 16px; }
    .stats-grid{ grid-template-columns: repeat(2, 1fr); }
    .ach-grid{ grid-template-columns: 1fr; }
    .gal-grid{ grid-template-columns: repeat(2, 1fr); }
  }
  
  /* ---------- Safety: prevent ugly breaks ---------- */
  .profile-body, .highlights, .ach, .stat {
    min-width: 0;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  