/* ===========================
   Cursor Glow
   =========================== */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ===========================
   Hero
   =========================== */
.profile-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--nav-height) + 40px) 20px 60px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(108,92,231,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px, rgba(108,92,231,0.015) 2px, rgba(108,92,231,0.015) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
  animation: blobMorph 12s ease-in-out infinite;
}

.hero-blob-1 {
  width: 500px; height: 500px;
  background: var(--color-primary);
  top: -10%; left: -5%;
}

.hero-blob-2 {
  width: 400px; height: 400px;
  background: var(--color-accent);
  bottom: -5%; right: -5%;
  animation-delay: -4s;
}

.hero-blob-3 {
  width: 300px; height: 300px;
  background: var(--color-accent-2);
  top: 40%; left: 60%;
  animation-delay: -8s;
}

@keyframes blobMorph {
  0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); border-radius: 50%; }
  25% { transform: translate(40px,-30px) scale(1.1) rotate(90deg); border-radius: 40% 60% 60% 40%; }
  50% { transform: translate(-20px,40px) scale(0.9) rotate(180deg); border-radius: 60% 40% 40% 60%; }
  75% { transform: translate(30px,20px) scale(1.05) rotate(270deg); border-radius: 45% 55% 55% 45%; }
}

.profile-hero-content {
  position: relative;
  z-index: 2;
}

/* ===========================
   Avatar
   =========================== */
.avatar-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  border: 3px solid rgba(0,245,212,0.3);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.avatar-wrapper:hover .profile-avatar {
  transform: scale(1.05);
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-accent);
  border-right-color: var(--color-primary);
  animation: ringRotate 4s linear infinite;
}

.avatar-ring-2 {
  inset: -12px;
  border-top-color: var(--color-accent-2);
  border-right-color: var(--color-accent-3);
  animation-direction: reverse;
  animation-duration: 6s;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.avatar-badge {
  position: absolute;
  bottom: 5px; right: 5px;
  width: 40px; height: 40px;
  background: var(--color-bg-card);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 3;
  box-shadow: 0 0 20px rgba(0,245,212,0.3);
}

/* ===========================
   Glitch Text
   =========================== */
.glitch-text {
  font-size: 3.5rem;
  font-weight: 800;
  position: relative;
  background: linear-gradient(135deg, #fff 0%, var(--color-accent) 50%, var(--color-accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s ease-in-out infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #fff, var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
}

.glitch-text:hover::before {
  animation: glitch1 0.3s ease-in-out;
  opacity: 0.8;
}

.glitch-text:hover::after {
  animation: glitch2 0.3s ease-in-out 0.05s;
  opacity: 0.8;
}

@keyframes glitch1 {
  0% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
  25% { clip-path: inset(60% 0 10% 0); transform: translate(3px, -2px); }
  50% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 1px); }
  75% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -1px); }
  100% { clip-path: inset(0); transform: translate(0); }
}

@keyframes glitch2 {
  0% { clip-path: inset(60% 0 20% 0); transform: translate(3px, -2px); }
  25% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 2px); }
  50% { clip-path: inset(30% 0 40% 0); transform: translate(2px, -1px); }
  75% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 1px); }
  100% { clip-path: inset(0); transform: translate(0); }
}

/* ===========================
   Typing Animation
   =========================== */
.typing-wrapper {
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  min-height: 1.8em;
}

.typing-cursor {
  animation: blink 0.8s step-end infinite;
  color: var(--color-accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===========================
   Profile Location & Social
   =========================== */
.profile-location {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.profile-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.magnetic-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}

.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,245,212,0.2));
  opacity: 0;
  transition: opacity 0.4s;
}

.magnetic-btn:hover::before { opacity: 1; }

.magnetic-btn:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 30px rgba(108,92,231,0.2), 0 0 60px rgba(108,92,231,0.1);
  transform: translateY(-3px);
}

.magnetic-btn span { position: relative; z-index: 1; }

.primary-btn {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-3));
  color: var(--color-bg);
  border-color: transparent;
}

.primary-btn:hover {
  box-shadow: 0 0 30px rgba(0,245,212,0.3), 0 0 60px rgba(0,245,212,0.15);
}

/* ===========================
   Scroll Indicator
   =========================== */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s ease 1.5s both;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-text-light);
}

.scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--color-text-light);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Stats Bar
   =========================== */
.stats-bar {
  padding: 3rem 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-bar-item {
  position: relative;
}

.stat-bar-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.stat-bar-item:last-child::after { display: none; }

.stat-bar-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-bar-suffix {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-bar-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-header h2 {
  font-size: var(--font-size-h2);
  background: linear-gradient(135deg, #fff, var(--color-accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   Profile Sections
   =========================== */
.profile-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.profile-section.alt-bg {
  background: var(--color-bg-alt);
}

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

.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   About Split
   =========================== */
.about-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-lead {
  font-size: 1.25rem;
  color: var(--color-text) !important;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1.5rem !important;
}

.about-left p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-highlight-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-accent-2));
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-highlight-card h4 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.about-highlight-card p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===========================
   Skills
   =========================== */
.skills-orbit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-category {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: transform 0.4s, box-shadow 0.4s;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.skill-category h3 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.tag[data-level="expert"] {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  box-shadow: 0 2px 10px rgba(108,92,231,0.2);
}

.tag[data-level="advanced"] {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  box-shadow: 0 2px 10px rgba(64,145,108,0.2);
}

.tag[data-level="intermediate"] {
  background: linear-gradient(135deg, #7b2cbf, #9d4edd);
  box-shadow: 0 2px 10px rgba(157,78,221,0.2);
}

.tag:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 25px rgba(108,92,231,0.3);
}

/* ===========================
   Glow Card Effect
   =========================== */
.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(108,92,231,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  transform: translate(-50%, -50%);
}

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

/* ===========================
   Certifications
   =========================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, border-color 0.4s;
}

.cert-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(108,92,231,0.15);
  border-color: rgba(108,92,231,0.3);
}

.cert-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cert-card h4 {
  color: #fff;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.cert-card span {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* ===========================
   Timeline
   =========================== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent), var(--color-accent-2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem; top: 1.5rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 4px rgba(108,92,231,0.15), 0 0 20px rgba(108,92,231,0.2);
  transition: all 0.4s;
  z-index: 1;
}

.timeline-item:hover .timeline-dot {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0,245,212,0.15), 0 0 30px rgba(0,245,212,0.3);
  background: var(--color-accent);
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 40px rgba(108,92,231,0.1);
  border-color: rgba(108,92,231,0.2);
}

.timeline-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.timeline-badge.current {
  background: rgba(0,245,212,0.15);
  color: var(--color-accent);
  border: 1px solid rgba(0,245,212,0.3);
}

.timeline-badge.community {
  background: rgba(108,92,231,0.15);
  color: var(--color-primary-light);
  border: 1px solid rgba(108,92,231,0.3);
}

.timeline-content h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.25rem; }
.timeline-content .company { display: block; color: var(--color-accent); font-weight: 500; font-size: 0.95rem; }
.timeline-content .duration { display: block; font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.timeline-content p { color: var(--color-text-light); line-height: 1.6; font-size: 0.9rem; }

/* ===========================
   Education & Awards
   =========================== */
.edu-awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.edu-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.edu-card.award { border-color: rgba(247,37,133,0.2); }
.edu-card.award:hover { box-shadow: 0 10px 40px rgba(247,37,133,0.15); }

.edu-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.edu-card h4 { color: #fff; margin-bottom: 0.25rem; }
.edu-card p { color: var(--color-text-light); font-size: 0.9rem; }
.edu-card .duration { font-size: 0.8rem; color: var(--color-text-light); }

/* ===========================
   Languages
   =========================== */
.languages-grid {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.lang-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: auto auto;
  gap: 0.25rem 1rem;
  align-items: center;
}

.lang-name { font-weight: 600; color: var(--color-text); }
.lang-level { font-size: 0.85rem; color: var(--color-text-light); text-align: right; }

.lang-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}

.lang-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 10px rgba(0,245,212,0.3);
}

/* ===========================
   CTA
   =========================== */
.profile-cta {
  padding: var(--section-padding);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.profile-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(108,92,231,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(0,245,212,0.1) 0%, transparent 50%);
  z-index: -1;
}

.profile-cta h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.profile-cta .cta-button {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-3));
  color: var(--color-bg);
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .skills-orbit, .cert-grid, .edu-awards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .glitch-text { font-size: 2.2rem; }
  .about-split { grid-template-columns: 1fr; }
  .skills-orbit, .cert-grid, .edu-awards-grid { grid-template-columns: 1fr; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-bar-item::after { display: none; }
  .profile-social { flex-direction: column; align-items: center; }
  .avatar-wrapper { width: 140px; height: 140px; }
  .profile-avatar { width: 120px; height: 120px; }
  .profile-cta h2 { font-size: 1.8rem; }
  .lang-item { grid-template-columns: 80px 1fr; }
}
