/* 
  Public Portfolio Custom CSS 
  Premium Dark Theme with Lime Accent
*/

:root {
  --font-primary: 'Outfit', sans-serif;
  
  --bg-main: #0B0F19;
  --bg-card: rgba(20, 27, 45, 0.4);
  --bg-input: #1C253C;
  
  --accent-lime: #CCFF00;
  --accent-hover: #b3e600;
  
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html, body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-lime);
}

/* Glow Effects */
.glow-effect {
  position: fixed;
  top: -10vh;
  left: 0;
  width: 100%;
  height: 120vh;
  background: radial-gradient(circle at 50% 20%, rgba(204,255,0,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.bottom-glow {
  display: none;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-main);
}
.text-accent {
  color: var(--accent-lime);
}
.text-muted {
  color: var(--text-muted) !important;
}

/* Navbar */
.custom-navbar {
  background-color: rgba(20, 24, 34, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  width: fit-content;
  margin: 1.5rem auto 0;
  left: 0;
  right: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.custom-navbar.is-scrolled {
  padding: 0.5rem 1.5rem;
  margin-top: 1rem;
  background-color: rgba(20, 24, 34, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.2);
}
.custom-navbar .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  padding: 0.5rem 0.5rem;
}
.custom-navbar .nav-link:hover {
  color: var(--accent-lime) !important;
}
.custom-navbar .btn-admin {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.3rem 1rem !important;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.custom-navbar .btn-admin:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nav-dots {
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.nav-dots:hover {
  color: var(--accent-lime);
}

/* Sections */
.main-content {
  padding-top: 100px;
}
.content-section {
  padding: 80px 0;
}
.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
}
.avatar-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid var(--accent-lime);
  background: transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}
.avatar-container:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 25px rgba(204, 255, 0, 0.2);
  border-color: rgba(204, 255, 0, 0.8);
}
.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--bg-card);
  transition: all 0.4s ease;
}
.avatar-container:hover img {
  filter: brightness(1.1);
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.2);
  border-radius: 30px;
  color: var(--accent-lime);
  font-size: 0.85rem;
  font-weight: 500;
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-lime);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-lime);
}
.hero-name {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}
.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 45px;
  max-width: 45px; /* Changed from width to max-width */
  border-radius: 50px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  padding: 0;
  background: transparent;
}
.social-links a i {
  width: 45px;
  text-align: center;
  flex-shrink: 0;
}
.social-links a .social-text {
  max-width: 0;
  opacity: 0;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-links a:hover {
  max-width: 200px; /* Let it grow naturally up to 200px */
  border-color: var(--accent-lime);
  color: var(--accent-lime);
  background: rgba(204, 255, 0, 0.05);
  transform: translateY(-3px);
  padding-right: 20px; /* Space after text */
}
.social-links a:hover .social-text {
  max-width: 150px;
  opacity: 1;
}
.scroll-down {
  color: var(--text-muted);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.scroll-down:hover {
  color: var(--accent-lime);
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

/* Glass Cards */
.glass-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: transform 0.3s, border-color 0.3s;
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Skills */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all 0.3s;
}
.skill-badge:hover {
  border-color: var(--accent-lime);
  background: rgba(204, 255, 0, 0.05);
  transform: translateY(-2px);
}
.skill-badge img {
  width: 18px;
  height: 18px;
}

/* Timeline / Experience */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-glass);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-lime);
  border: 4px solid var(--bg-main);
}
.timeline-dot.dot-info {
  background-color: var(--bs-info);
}
.timeline-dot.dot-warning {
  background-color: var(--bs-warning);
}
.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  padding: 4px 12px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* Experience Hover Desc */
.hover-desc-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-desc {
  text-align: justify;
}
.hover-container:hover .hover-desc-wrapper {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* Projects */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}
.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}
.project-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}
.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s;
}
.btn-outline-accent:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

/* Forms */
.form-control, .form-control[type=file], textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main) !important;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.form-control:focus, textarea:focus {
  background-color: var(--bg-input);
  color: var(--text-main) !important;
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 1px var(--accent-lime);
}
.form-control::placeholder, textarea::placeholder {
  color: var(--text-muted);
}
.form-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.btn-primary {
  background-color: transparent;
  border: 1px solid var(--accent-lime);
  color: var(--accent-lime);
  border-radius: 30px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--accent-lime);
  color: var(--bg-main);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
  border-color: var(--accent-lime);
}

/* Premium Custom Toast */
#custom-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}
.custom-toast {
  background: rgba(20, 27, 45, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  position: relative;
  overflow: hidden;
}
.custom-toast.toast-hiding {
  animation: toastSlideOut 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}
@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}
.custom-toast .toast-icon {
  font-size: 1.2rem;
}
.custom-toast.toast-success {
  border: 1px solid rgba(204, 255, 0, 0.3);
}
.custom-toast.toast-success .toast-icon {
  color: var(--accent-lime);
  text-shadow: 0 0 12px rgba(204, 255, 0, 0.6);
}
.custom-toast.toast-error {
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.custom-toast.toast-error .toast-icon {
  color: #ef4444;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--text-muted);
  width: 100%;
  opacity: 0.5;
  animation: toastProgress linear forwards;
}
.custom-toast.toast-success .toast-progress {
  background: var(--accent-lime);
}
.custom-toast.toast-error .toast-progress {
  background: #ef4444;
}
@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* --- Navbar Animation Logic (Global) --- */
.custom-navbar {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.custom-navbar .navbar-brand {
  transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.5s ease, padding 0.5s ease;
  max-width: 200px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
}

#navLinks {
  transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.5s ease, padding 0.5s ease;
  max-width: 800px;
  opacity: 1;
  overflow: hidden;
}

.custom-navbar.is-scrolled .navbar-brand,
.custom-navbar.is-scrolled #navLinks {
  max-width: 0;
  opacity: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#navDots {
  transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.5s ease;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.custom-navbar.is-scrolled #navDots {
  max-width: 50px;
  opacity: 1;
  padding: 0.5rem;
}
/* -------------------------------------- */

/* Responsive */
@media (max-width: 768px) {
  .hero-name {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .custom-navbar {
    width: fit-content !important;
    max-width: 95vw !important;
    padding: 0.5rem 1rem !important;
    border-radius: 30px !important;
  }
  #navLinks::-webkit-scrollbar {
    display: none;
  }
  .glass-card {
    padding: 1.25rem !important;
  }
  .content-section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .avatar-container {
    width: 120px;
    height: 120px;
  }
  #about-photo-container {
    max-width: 250px;
    margin: 0 auto;
  }
  .social-links {
    flex-wrap: wrap;
  }
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline-dot {
    left: -1.5rem;
  }
}

/* Cursor Glow Animation */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(204,255,0,0.12) 0%, rgba(204,255,0,0) 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: opacity 0.5s ease;
  opacity: 0;
}
.cursor-glow.active {
  opacity: 1;
}
