/* ============================================================
   Portfolio – Custom Styles
   All Tailwind custom overrides + component styles
   Font loaded via <link> in HTML (Inter from Google Fonts)
   ============================================================ */

/* ----- Custom Scrollbar ----- */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0ea5e9, #7c3aed);
  border-radius: 3px;
}

/* ----- Reading Progress Bar ----- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, #0ea5e9, #7c3aed, #06b6d4);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
  transition: width 0.1s linear;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ----- Gradient Text ----- */
.gradient-text {
  background: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  background: transparent;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(148, 163, 184, 0.07);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.nav-link {
  position: relative;
  color: #94a3b8;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0ea5e9, #7c3aed);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #e2e8f0;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 60% at 15% 55%,
      rgba(14, 165, 233, 0.09) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 82% 18%,
      rgba(124, 58, 237, 0.09) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 40% at 50% 85%,
      rgba(6, 182, 212, 0.06) 0%,
      transparent 70%
    );
  pointer-events: none;
}

/* Profile image container */
.hero-img-container {
  position: relative;
  width: 260px;
  height: 260px;
}

@media (min-width: 768px) {
  .hero-img-container {
    width: 310px;
    height: 310px;
  }
}
@media (min-width: 1024px) {
  .hero-img-container {
    width: 370px;
    height: 370px;
  }
}

/* Glow orb */
.hero-img-glow {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(14, 165, 233, 0.22) 0%,
    rgba(124, 58, 237, 0.18) 45%,
    transparent 70%
  );
  animation: pulse-glow 3.5s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* Spinning gradient ring */
.hero-img-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #0ea5e9,
    #7c3aed,
    #06b6d4,
    transparent,
    #0ea5e9
  );
  animation: spin-ring 6s linear infinite;
  z-index: 1;
}

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

/* Profile photo */
.hero-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  animation: floating 3.2s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Floating info badges */
.badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.badge-tl {
  top: 4%;
  left: -28%;
  animation: floating 3.2s ease-in-out infinite;
}

.badge-br {
  bottom: 6%;
  right: -22%;
  animation: floating 3.2s ease-in-out infinite 1.6s;
}

@media (max-width: 767px) {
  .badge {
    display: none;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-dot {
  width: 26px;
  height: 46px;
  border: 2px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  position: relative;
}

.scroll-dot::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 9px;
  background: #0ea5e9;
  border-radius: 2px;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  60% {
    opacity: 0.1;
    transform: translateX(-50%) translateY(15px);
  }
}

@media (max-width: 767px) {
  .scroll-indicator {
    display: none;
  }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stat-item {
  padding: 28px 20px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.3);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.12);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.info-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skill-category {
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.07);
  border-radius: 16px;
  padding: 24px 28px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(14, 165, 233, 0.18);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.06);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.skill-category-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(14, 165, 233, 0.07);
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 20px;
  font-size: 13px;
  color: #94a3b8;
  cursor: default;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.skill-tag:hover {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(14, 165, 233, 0.38);
  color: #e2e8f0;
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    #0ea5e9 0%,
    #7c3aed 60%,
    transparent 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  border: 3px solid #0f172a;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.55);
  z-index: 1;
}

.timeline-content {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 16px;
  padding: 24px 28px;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.timeline-content:hover {
  border-color: rgba(14, 165, 233, 0.22);
  transform: translateX(5px);
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.08);
}

.exp-badge {
  display: inline-block;
  padding: 4px 13px;
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: #0ea5e9;
  font-weight: 500;
  white-space: nowrap;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -1px;
  color: #0ea5e9;
  font-weight: 700;
  font-size: 17px;
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.07);
}

.tech-stack-pills span {
  padding: 3px 11px;
  background: rgba(124, 58, 237, 0.09);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 12px;
  font-size: 12px;
  color: #a78bfa;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-card {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(14, 165, 233, 0.24);
  box-shadow: 0 16px 48px rgba(14, 165, 233, 0.14);
}

.project-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0a1628;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-img-contain img {
  object-fit: contain;
  padding: 24px;
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 17px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  text-decoration: none;
}

.project-link-btn:hover {
  background: #7c3aed;
  transform: scale(1.12);
}

.project-tag {
  display: inline-block;
  padding: 3px 11px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  font-size: 12px;
  color: #94a3b8;
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-card {
  background: rgba(30, 41, 59, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 10px 32px rgba(14, 165, 233, 0.1);
}

.cert-icon {
  font-size: 42px;
  margin-bottom: 18px;
  display: block;
}

.cert-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-badge-oracle {
  background: rgba(239, 68, 68, 0.09);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 10px;
  padding: 12px 16px;
  color: #e2e8f0;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
  font-family: "Inter", sans-serif;
}

.form-input::placeholder {
  color: #475569;
}

.form-input:focus {
  border-color: #0ea5e9;
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

/* ============================================================
   BUTTONS & SOCIAL
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #7c3aed 100%);
  color: white;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.38);
}

.social-icon {
  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.5);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay for sibling reveal items */
.stagger-children .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger-children .reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.stagger-children .reveal:nth-child(3) {
  transition-delay: 0.25s;
}
.stagger-children .reveal:nth-child(4) {
  transition-delay: 0.35s;
}
.stagger-children .reveal:nth-child(5) {
  transition-delay: 0.45s;
}
.stagger-children .reveal:nth-child(6) {
  transition-delay: 0.55s;
}
