/* ==========================
   🌌 Karan Arora - Resume Website
   Dark Glassmorphic Theme + Orbitron Headings
   ========================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* 🎨 Color Palette */
:root {
  --bg1: #020617; /* Deep navy */
  --bg2: #0a192f; /* Midnight blue */
  --bg3: #1e293b; /* Slightly lighter blue */
  --accent: #38bdf8; /* Cyan */
  --accent-2: #60a5fa; /* Light blue */
  --accent-3: #fbbf24; /* Amber for section titles */
  --muted: #9aa6b2;
}

/* ==========================
   🌆 Base Styles
   ========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 17px;          /* smooth, readable size */
  line-height: 1.75; 
  color: #e6eef6;
  line-height: 1.6;
  background: radial-gradient(1200px 700px at 15% 15%, rgba(56,189,248,0.15), transparent 70%),
              radial-gradient(800px 400px at 85% 85%, rgba(96,165,250,0.12), transparent 80%),
              linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
  background-attachment: fixed;
}


/* ==========================
   🧭 Navbar
   ========================== */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  backdrop-filter: blur(14px) saturate(150%);
  background: rgba(15, 23, 42, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
}

.brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.nav-links a {
  color: var(--muted);
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, transform 0.15s;
}
.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ==========================
   🦸 Hero Section
   ========================== */
.section {
  padding: 3rem 2rem;
}

.hero-card {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(180%);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 2rem;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 50px rgba(56,189,248,0.12);
}

/* ==========================
   👤 Profile Row
   ========================== */
.profile-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

/* Rounded Rectangle Photo */
.profile-pic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.profile-pic img {
  width: 130px;
  height: 160px;
  border-radius: 20px; /* Rounded rectangle */
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.profile-pic img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.3);
}
.profile-pic::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 170px;
  border-radius: 22px;
  background: radial-gradient(circle, rgba(56,189,248,0.12), transparent 70%);
  z-index: -1;
  filter: blur(30px);
}

/* Name & Title */
.profile-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-info .title {
  font-family: 'Orbitron', sans-serif;
  margin: 0.3rem 0 0 0;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ==========================
   💡 Buttons
   ========================== */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: #e6eef6;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56,189,248,0.1);
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #011627;
  border: none;
}
.btn.ghost {
  background: transparent;
  color: var(--accent-2);
}

/* ==========================
   🧱 Cards & Sections
   ========================== */
h1, h2, h3, .section-title {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  color: var(--accent-3);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 10px rgba(56,189,248,0.3);
}
.card {
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(2,6,23,0.5);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
}

/* ==========================
   🔹 Projects Grid
   ========================== */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ==========================
   🧠 Skills & Tools with Icons
   ========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
  justify-items: center;
  align-items: center;
  margin-bottom: 2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 12px rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  width: 110px;
  height: 110px;
}

.skill-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(56,189,248,0.15);
  border-color: rgba(56,189,248,0.25);
}

.skill-item img {
  width: 45px;
  height: 45px;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 0 6px rgba(56,189,248,0.2));
}

.skill-item span {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--muted);
}
/* 💡 Soft Skills Label — Orbitron Glow */
.soft-skill-label {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  color: var(--accent-2);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  opacity: 0.9;
  text-shadow: 0 0 6px rgba(56,189,248,0.25);
  transition: all 0.3s ease;
}

.soft-skill-label:hover {
  color: var(--accent);
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(56,189,248,0.4);
}

/* ==========================
   💬 Soft Skills Expanding Chips
   ========================== */
.soft-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 20px;
}

.soft-chip {
  position: relative;
  background: rgba(56,189,248,0.08);
  color: var(--accent);
  padding: 0.7rem 1.2rem;
  border-radius: 14px; /* Rounded rectangle */
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.35s ease;
  border: 1px solid rgba(56,189,248,0.25);
  box-shadow: 0 0 12px rgba(56,189,248,0.12);
  backdrop-filter: blur(8px);
  text-align: center;
  overflow: hidden;
  min-width: 180px;
  max-width: 260px;
}

/* Hover animation */
.soft-chip:hover {
  transform: translateY(-3px);
  background: rgba(56,189,248,0.12);
  box-shadow: 0 0 20px rgba(56,189,248,0.25);
}

/* Expanded chip */
.soft-chip.expanded {
  background: rgba(56,189,248,0.18);
  color: #e6eef6;
  border-color: rgba(56,189,248,0.4);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  box-shadow: 0 0 28px rgba(56,189,248,0.3);
  max-width: 320px;
}

/* Description text */
.soft-chip .desc {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show text when expanded */
.soft-chip.expanded .desc {
  display: block;
  opacity: 1;
}

/* Smooth fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .soft-chip {
    width: 100%;
    max-width: none;
  }
}



/* ==========================
   📩 Contact Card
   ========================== */
.contact-card p {
  margin: 0.2rem 0;
}
.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.socials a {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.03);
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

/* ==========================
   ⚡ Animations
   ========================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================
   🦶 Footer
   ========================== */
.footer {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================
   📱 Responsive Design
   ========================== */
@media (max-width: 900px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
  }
  .nav {
    padding: 0.8rem 1rem;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .profile-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .profile-pic img {
    width: 120px;
    height: 145px;
  }
}

/* ==========================
   🌟 Global Section Glow & Hover Effects (with Neon Pulse)
   ========================== */

/* Slight base glow for all sections */
.section {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(56,189,248,0.1);
  transition: all 0.4s ease;
}

/* Lift and glow on hover */
.section:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.22);
}

/* Glow for individual components */
.card,
.hero-card,
.skill-item,
.cert-list li,
.contact-card,
.soft-chip {
  position: relative;
  transition: all 0.4s ease;
}

/* Hover effect on cards and elements */
.card:hover,
.hero-card:hover,
.skill-item:hover,
.cert-list li:hover,
.contact-card:hover,
.soft-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(56,189,248,0.3);
  border-color: rgba(56,189,248,0.35);
}

/* Add glowing gradient overlay */
.card:hover::before,
.hero-card:hover::before,
.skill-item:hover::before,
.cert-list li:hover::before,
.contact-card:hover::before,
.soft-chip:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56,189,248,0.25), rgba(96,165,250,0.15));
  z-index: -1;
  filter: blur(20px);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* ==========================
   🌈 Neon Breathing Animation
   ========================== */

/* Apply soft pulsing glow animation */
.card:hover,
.hero-card:hover,
.skill-item:hover,
.cert-list li:hover,
.contact-card:hover,
.soft-chip:hover {
  animation: neonPulse 2.4s ease-in-out infinite alternate;
}

/* Keyframes for glowing pulse */
@keyframes neonPulse {
  0% {
    box-shadow: 0 0 16px rgba(56,189,248,0.15),
                0 0 30px rgba(56,189,248,0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(56,189,248,0.25),
                0 0 60px rgba(96,165,250,0.18);
  }
  100% {
    box-shadow: 0 0 18px rgba(56,189,248,0.18),
                0 0 38px rgba(56,189,248,0.12);
  }
}
