/* ================================
   VARIABLES
================================ */
:root {
  --bg1: #0c0f17;
  --bg2: #121826;
  --card: rgba(20, 26, 45, 0.9);
  --accent1: #ffb300;
  --accent2: #ffc94d;
  --muted: #b7beca;
  --text: #f7f9fc;
}

/* ================================
   GLOBAL
================================ */
body, html {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  color: var(--text);
}

/* ================================
   WRAP & LAYOUT
================================ */
#wrap {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

#sidebar {
  width: 280px;
  background: #0f141d;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
 overflow-y: auto;
  border-right: 5px solid rgba(255,255,255,0.05);
  z-index: 1200;

}

#main {
  margin-left: 285px;
  width: calc(100% - 240px);
  padding-top: 2rem;
}


/* ================================
   SIDEBAR
================================ */
.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #fff;
}
.name { font-weight: 600; margin-top: 6px; font-size: 1.4rem; }
.role { color: var(--muted); font-size: 0.9rem; }

nav.nav a {
  color: var(--muted);
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  margin: 4px 8px;
  transition: color 0.3s ease;
text-transform: uppercase;
}
nav.nav a:hover, nav.nav a.active {
  color: var(--accent1);
}

.sidebar-foot {
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--muted);
}
.mobile-header, .close-btn { display: none; }

/* ================================
   HERO
================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
}

.hero canvas {
  position: absolute;
  top:0;
  left:0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.hero-title span { color: var(--accent1); }

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 1.2rem;
}

.hero .btn-primary {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: linear-gradient(90deg,var(--accent1),var(--accent2));
  border: none;
  font-weight: 600;
  color: #000;
  cursor: pointer;
}

/* ================================
   BUTTONS
================================ */
.btn-primary {
  background: linear-gradient(90deg,var(--accent1),var(--accent2));
  border: none;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}

/* ================================
   SECTIONS
================================ */
.section { padding: 5rem 0; }

.section-title {
  text-align: center;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 2.2rem;
  position: relative;
  letter-spacing: 1px;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg,var(--accent1),var(--accent2));
  margin: 12px auto 0;
}

/* ================================
   ABOUT & SKILLS
================================ */
#about { background: radial-gradient(circle at top, rgba(255,179,0,0.05), transparent 70%); }
.info-list p{
  color: var(--muted);
}
.lead { color: var(--muted); line-height: 1.8; }



#skills {
    background: radial-gradient(circle at top, rgba(255,179,0,0.06), transparent 80%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(120px,1fr));
    gap: 25px;
    justify-items: center;
}

/* Rings */
.skill-ring {
    position: relative;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
    .skill-ring:hover {
        transform: translateY(-10px); 
    }
    .skill-ring svg {
        transform: rotate(-90deg);
    }

    .skill-ring circle {
        fill: none;
        stroke-width: 10;
        stroke: rgba(255,255,255,0.1);
        r: 54;
        cx: 60;
        cy: 60;
    }

    .skill-ring .progress {
        stroke-linecap: round;
        stroke-dasharray: 339.292;
        stroke-dashoffset: 339.292;
        transition: stroke-dashoffset 0.1s ease;
    }

    .skill-ring:hover .progress {
        stroke-width: 14;
    }

/* Skill text and image */
.skill-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

    .skill-text img.skill-img {
        width: 40px;
        height: 40px;
        display: none; 
        transition: all 0.3s ease;
    }
.skill-img, .skill-label {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-label {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Large screens hover: show image and hide label */
@media (min-width: 768px) {
    .skill-ring:hover img.skill-img {
        display: block;
        width: 40px;
        height: 40px;
    }

    .skill-ring:hover .skill-label {
        display: none;
    }
}

/* Small screens: always show image and label */
@media (max-width: 767px) {
    .skill-text img.skill-img {
        display: block;
        width: 25px;
        height: 25px;
    }

    .skill-label {
        display: block;
        font-size: 0.9rem;
    }
    .skill-ring:active {
        transform: scale(0.95);
    }
}


/* ================================
   SERVICES
================================ */
.service-card {
    background: var(--card);
    border-radius: 10px;
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255,179,0,0.15);
}
.service-icon { font-size:2.5rem; color:var(--accent1); margin-bottom:1rem; }
.service-title { color:#fff; font-weight:600; margin-bottom:0.5rem; }
.service-desc { color:var(--muted); font-size:0.9rem; }

/* ================================
   PROJECTS
================================ */
/* Filter Tabs Styling */
.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;

}
.filter-tabs {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 12px;
}


    .filter-btn.active, .filter-btn:hover {
        background: #ffb300;
        color: #000;
        border-color: #ffb300;
        box-shadow: 0 0 15px rgba(255, 179, 0, 0.4);
    }

/* Grid Logic */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    transition: all 0.5s ease;
}

/* Animation for hiding projects */
.project-card {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

    .project-card.hide {
        display: none;
        opacity: 0;
        transform: scale(0.8);
    }

    .project-card.show {
        display: block;
        animation: fadeIn 0.4s ease forwards;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Base project card */
.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: rgba(20, 26, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 400px;
  display: block;

}

/* Featured project card */
.project-card.featured {
  grid-column: span 2;
  height: 500px;
}

/* Hover effect */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(255, 179, 0, 0.2);
}

/* Image wrapper fills entire card */
.project-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Project image covers wrapper */
.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-card:hover .project-image {
  transform: scale(1.08);
}

/* Overlay at bottom with text */
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  transition: background 0.35s ease;
}

.project-card:hover .project-overlay {
  background: rgba(0, 0, 0, 0.65);
}

.project-overlay h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color:white;

}

.project-overlay p {
    font-size: 0.9rem;
    color: #b7beca;
    line-height: 1.4;
  
}
/* Prevent link styles affecting text */
.project-actions a {
    text-decoration: none;
    color: inherit;
}

.project-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 14px;
}

/* Glass button */
.action-btn.glass {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    cursor: pointer;
}

    /* Hover elevation + glow */
    .action-btn.glass:hover {
        transform: translateY(-6px) scale(1.05);
        background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
        box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 12px rgba(255,179,0,0.45);
    }

.icon-light, .launch-icon {
    width: 20px;
    height: 20px;
    color: #fff; /* White color for visibility */
}

/* GitHub icon fix */
.icon-light {
    filter: invert(1);
}

/* Tooltip label */
.action-label {
    position: absolute;
    top: -42px;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

    /* Tooltip arrow */
    .action-label::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px 6px 0;
        border-style: solid;
        border-color: #000 transparent transparent;
    }

/* Show tooltip */
.action-btn:hover .action-label {
    opacity: 1;
    transform: translateY(0) scale(1);
}
@media (max-width: 480px) {
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}


/* ================================
   PROJECT IMAGE OVERLAY (DEFAULT)
================================ */
.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px; /* keep images rounded */
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* cover entire image */
  background: rgba(0, 0, 0, 0.35); /* default semi-transparent overlay */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* keeps text at bottom */
  padding: 1rem;
  text-align: left;
  z-index: 2;
  transition: background 0.35s ease, transform 0.35s ease;
}

.project-overlay h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project-overlay p {
  font-size: 0.9rem;
  color: #e0e0e0;
  line-height: 1.4;
}

/* Slight darkening on hover */
.project-card:hover .project-overlay {
  background: rgba(0, 0, 0, 0.55);
}

/* Mini cards (optional smaller variation) */
.project-card.mini {
  height: 500px;
}

.project-card.featured.mini {
  height: 450px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .project-card.featured {
    grid-column: span 1;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .project-card {
    height: 300px;
  }
  .project-card.featured {
    height: 350px;
  }
}

/* =====  Loader ===== */
#loader {
  position: fixed;
  inset: 0;
  background: #050709;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader-content {
  text-align: center;
  position: relative;
}

.ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.ring {
  width: 100%;
  height: 100%;
  border: 3px solid rgba(245,197,66,0.15);
  border-top: 3px solid #f5c542;
  border-radius: 50%;
  animation: rotateRing 1.6s linear infinite;
  box-shadow: 0 0 25px rgba(245,197,66,0.2);
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #f5c542;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(245,197,66,0.4);
}

.loader-tagline {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.loader-tagline span {
  color: #f5c542;
  text-shadow: 0 0 10px rgba(245,197,66,0.4);
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}


/* ===== Education Section ===== */

.section-navy {
  background: transparent;
  padding: 110px 0;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
  border-left: 2px solid rgba(245,197,66,0.25);
}

.timeline-item {
  position: relative;
  margin-bottom: 70px;
  padding-left: 50px;
}

.timeline-icon {
  position: absolute;
  left: -22px;
  top: 8px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(245,197,66,0.25), rgba(0,0,0,0.6));
  border: 1px solid rgba(245,197,66,0.5);
  color: #f5c542;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 15px rgba(245,197,66,0.25);
  transition: all 0.3s ease;
}

.timeline-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(245,197,66,0.4);
}

/* subtle glowing pulse animation */
.pulse::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(245,197,66,0.2);
  top: 0;
  left: 0;
  transform: scale(1);
  opacity: 0.8;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0.2; }
  100% { transform: scale(1); opacity: 0.8; }
}

.timeline-content {
  background: var(--card);
  padding: 25px 30px;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(245,197,66,0.1);
}

.timeline-content h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0px;
}

.timeline-content p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
}

.edu-skills {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.edu-skills li {
  color: #aaa;
  font-size: 0.9rem;
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}

.edu-skills li::before {
  content: "•";
  color: #f5c542;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1rem;
}
@media (max-width:800px) {
  .timeline {

  padding-left: 0px;
 border: none;
}
.timeline-icon {
  display: none;
}
.timeline-item {

  padding-left: 0px;
  padding-top: 25px;
}

}

/* ===== Coming Soon Button (Redesigned) ===== */
.coming-tag {
  align-self: flex-start;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid rgba(245,197,66,0.4);
  color: #f5c542;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-top: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}
.coming-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245,197,66,0.1);
  opacity: 0;
  transition: 0.3s;
}
.coming-tag:hover::before {
  opacity: 1;
}
.coming-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(245,197,66,0.15);
}

/* ===== Certificates Section ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}
.cert-box {
   background: var(--card);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  transition: 0.35s ease;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cert-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(245,197,66,0.15);
}
.cert-box h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 10px;

}
    
    .cert-box p {
        color: #bbb;
        font-size: 0.95rem;
        line-height: 1.6;
    }
.cert-box .skills h5 {
  color: #ffff;
  margin-bottom: 6px;
  margin-top: 12px;
}

.view-btn {
  align-self: flex-start;
  margin-top: 15px;
  background: #f5c542;
  border: none;
  color: #000;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}
.view-btn:hover {
  background: #ffd84a;
  transform: translateY(-2px);
}

/* ===== Popup ===== */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: 0.3s ease;
}
.popup.active {
  display: flex;
  opacity: 1;
}
.popup-inner {
  width: min(90%, 1000px);
  height: 90vh;
  background: #12141b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  position: relative;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 18px;
  color: #f5c542;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
#popupContent {
  width: 100%;
  height: 100%;
}
#popupContent embed, #popupContent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}




/* ================================
   CONTACT
================================ */
#contact { margin-top:6rem; background: radial-gradient(circle at top, rgba(255,179,0,0.04), transparent 80%); }

.contact-form .form-control {
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  color:#fff;
  font-size:0.95rem;
  padding:0.75rem 1rem;
}
.contact-form .form-control:focus {
  border-color: var(--accent1);
  background: rgba(255,255,255,0.08);
  box-shadow:none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }

.contact-box {
  background: rgba(255,255,255,0.03);
  border-radius:10px;
  padding:2rem;
  border:1px solid rgba(255,255,255,0.05);
  display:flex;
  flex-direction:column;
  justify-content:center;
  height:100%;
}
.contact-box h5 { color:#fff; font-weight:600; margin-bottom:1rem; text-align:left; }
.contact-info li { list-style:none; color:var(--muted); margin-bottom:0.8rem; font-size:0.95rem; display:flex; align-items:center; gap:8px; }
.contact-info strong { min-width:80px; color:#cfd2d8; font-weight:500; }
.social-links { display:flex; flex-wrap:wrap; gap:12px; margin-top:1.5rem; }
.social-link { background: rgba(255,255,255,0.04); border-radius:50px; padding:8px 12px; color:#fff; width:44px; display:flex; align-items:center; text-decoration:none; overflow:hidden; transition: all 0.3s ease; }
.social-link i { font-size:1.2rem; color:#a4aab3; transition: all 0.3s ease; }
.social-link span { opacity:0; white-space:nowrap; margin-left:10px; color:#fff; transition: all 0.3s ease; }
.social-link:hover { width:140px; background: rgba(255,255,255,0.08); }
.social-link:hover span { opacity:1; }

/* ================================
   FOOTER
================================ */
footer {
  color: var(--muted);
  font-size:0.9rem;
  background:#0c0f17;
  padding:2rem 0;
  text-align:center;
}

/* ================================
   RESPONSIVE
================================ */
@media (min-width:991px) {
   .mobile-header {
    display: none;
  }
}
@media(max-width:991px){
  #wrap { flex-direction:column; width:100%; }
  #sidebar { position:fixed; left:-100%; top:0; width:100%; height:100vh; transition:left 0.4s ease; z-index:1050; }
  #sidebar.open { left:0; }
  #main { margin-left:0 !important; width:100% !important; }
  .mobile-header { display:flex; justify-content:space-between; align-items:center; background: var(--bg1); color:#fff; padding:0.8rem 1rem; position:sticky; top:0; z-index:1100; }
  .close-btn { display:block; position:absolute; top:16px; right:20px; font-size:1.8rem; color:#fff; cursor:pointer; }
  .hero { justify-content:center; text-align:center; padding:3rem 1rem; min-height:90vh; }
  .hero-content { max-width:90%; }
  .hero-title { font-size:2.4rem; }
  .section { padding:3.5rem 0; }
  .service-card, .small-card { margin:0 auto; }
  .contact-box { margin-top:2rem; height:auto; }
}

@media(max-width:768px){
  .hero-title { font-size:2.6rem; }
  .hero-subtitle { font-size:1rem; }
  .hero { padding:2rem; }
  .hero-content { max-width:90%; }
  .project-card.featured { grid-column: span 1; }
}
