/* =============================================
   HRITVIK SAIGAONKAR — PORTFOLIO STYLES
   style.css
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #020617;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #cbd5e1;
  overflow-x: hidden;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4, #8b5cf6);
  border-radius: 3px;
}

/* ---------- Animated Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #22d3ee 0%, #a78bfa 50%, #22d3ee 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

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

/* ---------- Profile Ring ---------- */
.profile-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #06b6d4, #8b5cf6, #22d3ee, #a78bfa, #06b6d4);
  animation: borderSpin 4s linear infinite;
  z-index: 0;
}

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

/* Inner mask to hide ring fill */
.profile-ring-mask {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #020617;
  z-index: 1;
}

/* ---------- Scroll Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- Navbar ---------- */
.nav-glass {
  background: rgba(2, 6, 23, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease;
}

/* ---------- Hero Background ---------- */
.hero-bg-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(6, 182, 212, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%,  rgba(139, 92, 246, 0.10) 0%, transparent 70%);
}

.dot-grid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- Float Animation ---------- */
.float-anim {
  animation: float 6s ease-in-out infinite;
}

.float-anim-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

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

/* ---------- Status Badge ---------- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ---------- Social Buttons ---------- */
.social-btn {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-btn:hover {
  border-color: rgba(6, 182, 212, 0.50);
  background: rgba(6, 182, 212, 0.10);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.20);
}

.social-btn svg {
  transition: transform 0.3s ease;
}

.social-btn:hover svg {
  transform: scale(1.15);
}

/* ---------- Primary Button ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.35);
}

.btn-primary > * { position: relative; z-index: 1; }

/* ---------- Secondary / Ghost Button ---------- */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(100, 116, 139, 0.5);
  color: #cbd5e1;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  border-color: rgba(100, 116, 139, 0.8);
  color: #fff;
  background: rgba(30, 41, 59, 0.5);
}

/* ---------- Skill Pills ---------- */
.skill-pill {
  background: rgba(30, 41, 59, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
}

.skill-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.15);
}

.skill-pill.cyan  { color: #67e8f9; }
.skill-pill.cyan:hover  { background: rgba(6, 182, 212, 0.10); border-color: rgba(6, 182, 212, 0.40); }

.skill-pill.violet { color: #c4b5fd; }
.skill-pill.violet:hover { background: rgba(139, 92, 246, 0.10); border-color: rgba(139, 92, 246, 0.40); }

.skill-pill.emerald { color: #6ee7b7; }
.skill-pill.emerald:hover { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.40); }

/* ---------- Skill Category Card ---------- */
.skill-card {
  background: rgba(15, 23, 42, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 32px;
  transition: border-color 0.3s ease;
}

.skill-card:hover { border-color: rgba(6, 182, 212, 0.20); }
.skill-card.violet-hover:hover { border-color: rgba(139, 92, 246, 0.20); }
.skill-card.emerald-hover:hover { border-color: rgba(16, 185, 129, 0.20); }

.skill-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Project Cards ---------- */
.project-card {
  background: rgba(15, 23, 42, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.30);
  box-shadow: 0 30px 60px rgba(6, 182, 212, 0.12),
              0 0 0 1px rgba(6, 182, 212, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

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

.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.card-glow-cyan   { background: radial-gradient(ellipse at top left, rgba(6, 182, 212, 0.08) 0%, transparent 60%); }
.card-glow-violet { background: radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.08) 0%, transparent 60%); }
.card-glow-emerald{ background: radial-gradient(ellipse at top left, rgba(16, 185, 129, 0.08) 0%, transparent 60%); }
.card-glow-amber  { background: radial-gradient(ellipse at top left, rgba(251, 191, 36, 0.08) 0%, transparent 60%); }

.project-card-emoji {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* GitHub link inside project card */
.project-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  border: 1px solid rgba(71, 85, 105, 0.7);
  border-radius: 50px;
  padding: 6px 14px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.project-github-btn:hover {
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.45);
}

.project-github-btn.demo-btn:hover {
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.45);
}

.project-github-btn svg { transition: transform 0.25s ease; }
.project-github-btn:hover svg { transform: scale(1.15); }

/* Tech stack tags */
.tech-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
}

.tech-tag.cyan   { background: rgba(6, 182, 212, 0.10); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.20); }
.tech-tag.violet { background: rgba(139, 92, 246, 0.10); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.20); }
.tech-tag.emerald{ background: rgba(16, 185, 129, 0.10); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.20); }
.tech-tag.amber  { background: rgba(251, 191, 36, 0.10); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.20); }

/* ---------- Section Heading ---------- */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #22d3ee;
  display: block;
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #f1f5f9;
  text-align: center;
  position: relative;
  padding-bottom: 16px;
}

.section-heading::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ---------- Contact Form ---------- */
.contact-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  outline: none;
}

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

.form-input:focus {
  border-color: rgba(6, 182, 212, 0.50);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08), 0 0 20px rgba(6, 182, 212, 0.08);
  background: rgba(6, 182, 212, 0.03);
}

textarea.form-input { resize: none; }

/* ---------- Form Status ---------- */
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  display: block;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  display: block;
}

/* ---------- Loading Spinner ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-loading .spinner { display: block; }
.btn-loading .btn-text { display: none; }
.btn-loading .btn-icon { display: none; }

/* ---------- Footer ---------- */
.footer-link {
  color: #475569;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-link:hover { color: #e2e8f0; }
.footer-link.youtube:hover { color: #f87171; }
.footer-link.linkedin:hover { color: #60a5fa; }

/* ---------- Mobile nav ---------- */
.mobile-menu-panel {
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: none;
}

.mobile-menu-panel.open { display: block; }

.mobile-nav-link {
  display: block;
  padding: 12px 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover { color: #22d3ee; }

/* ---------- Stats strip ---------- */
.stat-card {
  text-align: center;
  padding: 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #475569;
  margin-top: 4px;
}

/* ---------- Ambient orbs ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb-cyan {
  background: #06b6d4;
  opacity: 0.045;
  animation: float 7s ease-in-out infinite;
}

.orb-violet {
  background: #8b5cf6;
  opacity: 0.04;
  animation: float 7s ease-in-out infinite;
  animation-delay: 3.5s;
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .contact-card { padding: 24px; }
  .skill-card   { padding: 24px; }
  .project-card { padding: 24px; }
}
