/* =========================
   Portfolio CSS - Sky-Blue Neon Theme + Glassmorphism
   - White body text
   - Sky-blue headers / highlights: #00c8ff
   - Glass panels (cards, navbar, buttons)
   - Neon hover pulse + border-expand animation
========================= */

/* ----- Root Variables ----- */
:root {
  --bg-color: #000000;        /* Pure Black background */
  --text-color: #ffffff;      /* Main body text = white */
  --sky: #00c8ff;             /* Sky blue neon */
  --highlight: var(--sky);    /* highlights use sky */
  --card-bg: rgba(0, 200, 255, 0.08);   /* subtle sky tint */
  --card-bg-strong: rgba(0, 200, 255, 0.12);
  --card-border: rgba(0, 200, 255, 0.7);
  --glass-bg: rgba(255,255,255,0.04);
  --gradient: linear-gradient(135deg, var(--sky) 0%, rgba(0,200,255,0.6) 100%);
  --glass-border: rgba(255,255,255,0.08);
  --transition-fast: 0.18s;
  --transition: 0.3s;
}

/* ----- Light-theme accidental override (keep dark) ----- */
[data-theme="light"] {
  --bg-color: #000000;
  --text-color: #ffffff;
  --card-bg: rgba(0, 200, 255, 0.08);
}

/* ----- Global Styles ----- */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings use sky blue */
h1, h2, h3, h4, h5, h6 {
  color: var(--sky);
  margin: 10px 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Smaller text */
p, li, a, span {
  color: var(--text-color);
  line-height: 1.6;
}

/* ----- Navbar Left Side (glass) ----- */
.navbar {
  position: fixed;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 24px rgba(0,200,255,0.03);
  transition: transform var(--transition), box-shadow var(--transition);
}

.navbar:hover { transform: translateY(-50%) scale(1.01); }

/* Nav icons */
.nav-icons-left {
  list-style: none;
  padding: 6px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-icons-left li a img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 6px rgba(0,200,255,0.08);
  background: rgba(255,255,255,0.02);
  padding: 4px;
}

.nav-icons-left li a img:hover {
  transform: scale(1.12);
  filter: brightness(1.05);
  box-shadow: 0 0 12px var(--sky), 0 0 24px rgba(0,200,255,0.25);
}

/* Theme toggle */
#theme-toggle {
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  font-size: 18px;
  color: var(--text-color);
  cursor: pointer;
  border-radius: 10px;
  padding: 6px 8px;
  width: 48px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
#theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--sky);
}

/* ----- Sections ----- */
.section {
  padding: 48px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Gap line between sections */
.section + .section::before {
  content: "";
  display: block;
  width: 80%;
  height: 4px;
  background-color: var(--highlight);
  margin: 60px auto;
  border-radius: 2px;
  opacity: 0.14;
  box-shadow: 0 0 12px rgba(0,200,255,0.06);
}

/* Home Glow Text */
.glow-text {
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
  opacity: 0;
  display: inline-block;
  text-shadow: 0 0 6px rgba(0,200,255,0.12), 0 0 12px rgba(0,200,255,0.06);
  color: var(--text-color);
}

.left-to-center {
  animation: slide-left-to-center 3s forwards, neon-pulse 2.2s infinite alternate;
  animation-delay: 0s, 1.5s;
}

.right-to-center {
  animation: slide-right-to-center 3s forwards, neon-pulse 2.2s infinite alternate;
  animation-delay: 0s, 1.5s;
}

/* Slide animations */
@keyframes slide-left-to-center {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes slide-right-to-center {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Neon pulse animation */
@keyframes neon-pulse {
  0%   { text-shadow: 0 0 6px rgba(0,200,255,0.08); color: var(--text-color); transform: scale(1); }
  50%  { text-shadow: 0 0 10px var(--sky), 0 0 24px rgba(0,200,255,0.18); color: var(--sky); transform: scale(1.01); }
  100% { text-shadow: 0 0 6px rgba(0,200,255,0.08); color: var(--text-color); transform: scale(1); }
}

/* ----- Cards ----- */
.section-card,
.section-card .section-text,
.project-card,
.skill-card,
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 22px rgba(0,200,255,0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-container {
  max-width: 900px;
  margin: 48px auto;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  border: 1px solid rgba(0,200,255,0.06);
  box-shadow: 0 10px 28px rgba(0,0,0,0.6), 0 0 28px rgba(0,200,255,0.03);
}

.section-card:hover,
.project-card:hover,
.skill-card:hover,
.contact-container:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 40px rgba(0,200,255,0.16);
  border-color: var(--sky);
  animation: border-expand 0.6s ease forwards;
}

@keyframes border-expand {
  0% { box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 12px rgba(0,200,255,0.05); }
  100% { box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 40px rgba(0,200,255,0.16); }
}

/* Home Image */
.section-card .section-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
  border: 2px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 14px rgba(0,200,255,0.04);
}

.section-card .section-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px var(--sky), 0 0 36px rgba(0,200,255,0.12);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 6px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  color: var(--text-color);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,200,255,0.25);
  box-shadow: inset 0 -2px 8px rgba(0,0,0,0.6), 0 6px 18px rgba(0,0,0,0.6);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition), border-color var(--transition);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn.primary {
  background: linear-gradient(90deg, rgba(0,200,255,0.12), rgba(0,200,255,0.08));
  color: #00121a;
  border: 1px solid rgba(0,200,255,0.9);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6), 0 0 24px rgba(0,200,255,0.14);
}

.btn:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--sky);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 34px rgba(0,200,255,0.18);
  animation: neon-button-pulse 1.2s infinite;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,200,255,0.08), 0 0 24px rgba(0,200,255,0.14);
}

@keyframes neon-button-pulse {
  0% { box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 8px rgba(0,200,255,0.08); }
  50% { box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 44px rgba(0,200,255,0.22); transform: translateY(-4px) scale(1.035); }
  100% { box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 8px rgba(0,200,255,0.08); transform: translateY(-3px) scale(1.03); }
}

/* icon button */
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 6px;
  border: 1px solid rgba(0,200,255,0.12);
  background: rgba(255,255,255,0.02);
}

/* ----- Project & Skill Lists ----- */
.project-list,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.project-card,
.skill-card {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  position: relative;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
}

.project-card img,
.skill-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin-bottom: 8px;
  object-fit: cover;
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
  border: 2px solid rgba(255,255,255,0.04);
  box-shadow: 0 0 6px rgba(0,200,255,0.04);
}

.project-card:hover img,
.skill-card:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 18px var(--sky), 0 0 26px rgba(0,200,255,0.12);
}

/* overlays */
.project-card .overlay,
.skill-card .skill-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  font-weight: bold;
  font-size: 14px;
  border-radius: 12px;
  transition: opacity var(--transition), transform var(--transition);
}

.project-card:hover .overlay,
.skill-card:hover .skill-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Contact Section ----- */
.contact-container .section-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 14px rgba(0,200,255,0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-container .section-img:hover {
  transform: scale(1.06);
  box-shadow: 0 0 26px var(--sky), 0 0 30px rgba(0,200,255,0.12);
}

.contact-container .section-text h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: var(--sky);
}

.contact-container .section-text p,
.contact-container .section-text a {
  color: var(--text-color);
}

/* ----- Social Icons ----- */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 0 6px rgba(0,200,255,0.04);
}

.social-icons a img:hover {
  transform: scale(1.12);
  box-shadow: 0 0 22px var(--sky), 0 0 34px rgba(0,200,255,0.14);
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  padding: 8px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  cursor: pointer;
  z-index: 100;
  display: block;
  transition: transform var(--transition-fast), opacity var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.04);
}

#back-to-top:hover {
  transform: scale(1.18);
  opacity: 0.95;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 34px rgba(0,200,255,0.14);
}

/* Fade animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Glow utility */
.glow-border {
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 24px rgba(0,200,255,0.12);
  border: 1px solid rgba(0,200,255,0.14);
}

/* Text utilities */
.highlight { color: var(--sky); font-weight: 700; }
.small-text { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.9); }

/* Active nav glow */
.nav-icons-left li a.active.neon-glow {
  color: var(--sky);
  text-shadow: 0 0 6px var(--sky), 0 0 12px rgba(0,200,255,0.18);
  transition: text-shadow var(--transition), color var(--transition);
}

html {
  scroll-behavior: smooth;
}
