@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --bg: #eaf1fb;
  --bg-gradient: linear-gradient(135deg, #eaf1fb 0%, #fafdff 100%);
  --glass: rgba(255,255,255,0.7);
  --glass-blur: blur(18px) saturate(120%);
  --card: rgba(255,255,255,0.85);
  --card-border: rgba(180,200,255,0.18);
  --text: #1a2236;
  --text-alt: #0f2027;
  --accent: #2979ff;
  --accent2: #00bcd4;
  --accent3: #ff6f61;
  --shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
  --shadow-strong: 0 8px 32px 0 rgba(41,121,255,0.13);
  --funfact-bg: linear-gradient(90deg, #e0f7fa 0%, #b2ebf2 100%);
  --skill-bar-bg: #e3e6f3;
  --skill-bar-fill: #2979ff;
  --project-tag-bg: #e3e6f3;
  --project-btn-bg: #2979ff;
  --project-btn-color: #fff;
  --qr-bg: rgba(255,255,255,0.7);
  --toggle-bg: #e3e6f3;
  --toggle-thumb: #2979ff;
}
body[data-theme='dark'] {
  --bg: #0a0f1a;
  --bg-gradient: linear-gradient(135deg, #0a0f1a 0%, #181c2f 100%);
  --glass: rgba(24,28,47,0.7);
  --glass-blur: blur(20px) saturate(120%);
  --card: rgba(24,28,47,0.92);
  --card-border: rgba(0,255,247,0.13);
  --text: #e0e7ef;
  --text-alt: #fff;
  --accent: #00fff7;
  --accent2: #ff00cc;
  --accent3: #39ff14;
  --shadow: 0 8px 32px 0 #00fff733;
  --shadow-strong: 0 8px 32px 0 #00fff799;
  --funfact-bg: linear-gradient(90deg, #23263a 0%, #181c2f 100%);
  --skill-bar-bg: #23263a;
  --skill-bar-fill: #00fff7;
  --project-tag-bg: #23263a;
  --project-btn-bg: #00fff7;
  --project-btn-color: #181c2f;
  --qr-bg: rgba(24,28,47,0.7);
  --toggle-bg: #23263a;
  --toggle-thumb: #00fff7;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f7f9fb;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.5s, color 0.5s;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

.hero {
  background: linear-gradient(120deg, #0f2027, #2c5364);
  color: #fff;
  padding: 4rem 0 2rem 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  padding-bottom: 2.5rem;
}
.hero .highlight {
  color: #00e6a8;
  font-weight: 700;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}
.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.hero .subtitle {
  font-family: 'Fira Mono', monospace;
  font-size: 1rem;
  opacity: 0.85;
}

/* Ultra Stylish Gradient Glass Navbar */
.navbar {
  background: linear-gradient(90deg, rgba(41,121,255,0.85) 0%, rgba(0,230,168,0.75) 100%);
  box-shadow: 0 8px 32px 0 rgba(41,121,255,0.18), 0 2px 8px rgba(44,83,100,0.10);
  border-bottom: 2.5px solid rgba(0,230,168,0.18);
  border-radius: 0 0 22px 22px;
  backdrop-filter: blur(18px) saturate(120%);
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background 0.4s, box-shadow 0.4s;
  margin-bottom: 0.5rem;
}
/* Navbar new structure for better wrapping and responsive row/column */
.navbar .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 0.3rem 0;
  max-width: 900px;
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  box-shadow: 0 2px 12px rgba(41,121,255,0.10);
  font-size: 1.09rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
  backdrop-filter: blur(2px);
  border: 1.5px solid rgba(255,255,255,0.18);
  min-width: 70px;
  text-align: center;
  margin-bottom: 0.2rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #fff 0%, #00e6a8 100%);
  border-radius: 2px;
  transition: width 0.28s cubic-bezier(.4,0,.2,1), left 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 2;
}
.nav-links a:hover, .nav-links a:focus {
  background: rgba(255,255,255,0.22);
  color: #2979ff;
  box-shadow: 0 6px 24px rgba(0,230,168,0.18), 0 2px 8px rgba(41,121,255,0.10);
  transform: scale(1.10) translateY(-2px);
}
.nav-links a:hover::after, .nav-links a:focus::after {
  width: 80%;
  left: 10%;
}
.nav-links a:active {
  background: rgba(255,255,255,0.32);
  color: #00e6a8;
  transform: scale(0.97);
}
@media (max-width: 700px) {
  .navbar .container {
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.1rem 0;
  }
  .logo-row {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.2rem;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    border-radius: 1.5em;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 2px 8px rgba(41,121,255,0.06);
  }
  .nav-links a {
    font-size: 0.98rem;
    padding: 0.45rem 0.8rem;
    border-radius: 16px;
    min-width: 70px;
    margin-bottom: 0.2rem;
  }
}
@media (max-width: 480px) {
  .nav-links {
    gap: 0.2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 1.2em;
  }
  .nav-links a {
    font-size: 0.92rem;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    min-width: 60px;
    margin-bottom: 0.2rem;
  }
}

.section {
  padding: 3rem 0 2rem 0;
}
.section { content-visibility: auto; contain-intrinsic-size: 1000px 1px; }
.section h2 {
  font-size: 2.3rem;
  margin-bottom: 1.3rem;
  color: #2c5364;
  font-weight: 900;
  letter-spacing: 0.01em;
  position: relative;
  text-align: left;
  padding-bottom: 0.25em;
}
.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: #ff6f61;
  border-radius: 2px;
  margin-top: 0.35em;
  margin-bottom: 0.1em;
}
@media (max-width: 700px) {
  .section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.18em;
  }
  .section h2::after {
    width: 32px;
    height: 3px;
    margin-top: 0.22em;
  }
}
@media (max-width: 480px) {
  .section h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.12em;
  }
  .section h2::after {
    width: 20px;
    height: 2px;
    margin-top: 0.13em;
  }
}

.about p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.projects .project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(44,83,100,0.08);
  padding: 1.5rem 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,230,168,0.13);
}
.project-card.placeholder {
  opacity: 0.7;
  border: 2px dashed #00e6a8;
  background: #f0fdfa;
  color: #2c5364;
  text-align: center;
}

/* Colorful and attractive Skills section */
.skills.section {
  background: linear-gradient(120deg, #f0fdfa 0%, #e0e7ff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(44,83,100,0.10);
  margin-bottom: 2.5rem;
  animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1) both;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  animation: fadeIn 1.2s 0.2s cubic-bezier(.4,0,.2,1) both;
}
.skills-list li {
  padding: 0.7rem 1.4rem;
  border-radius: 22px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  box-shadow: 0 2px 12px rgba(44,83,100,0.10);
  background: #00e6a8;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  cursor: default;
}
.skills-list li:nth-child(1) { background: #00e6a8; }
.skills-list li:nth-child(2) { background: #6366f1; }
.skills-list li:nth-child(3) { background: #f59e42; }
.skills-list li:nth-child(4) { background: #ef4444; }
.skills-list li:nth-child(5) { background: #f472b6; }
.skills-list li:nth-child(6) { background: #22d3ee; }
.skills-list li:nth-child(7) { background: #a3e635; }
.skills-list li:nth-child(8) { background: #fbbf24; }
.skills-list li:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 6px 24px rgba(44,83,100,0.13);
  filter: brightness(1.08);
}
@media (max-width: 700px) {
  .container {
    width: 100%;
    padding: 0 0.2rem;
  }
  .hero {
    padding: 2rem 0 1rem 0;
  }
  .section {
    padding: 1rem 0 0.5rem 0;
  }
  .skills-list {
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
  }
  .hexagon-grid {
    gap: 1.7rem 0.8rem;
    max-width: 320px;
  }
  .hex {
    width: 60px;
    height: 60px;
  }
  .hex i {
    font-size: 1.7rem;
  }
  .contact-form {
    max-width: 100%;
    gap: 0.7rem;
  }
}
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 0.1rem;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .hero h2 {
    font-size: 0.9rem;
  }
  .section h2 {
    font-size: 1rem;
  }
  .skills-list li {
    font-size: 0.92rem;
    padding: 0.4rem 0.5rem;
  }
  .hex {
    width: 40px;
    height: 40px;
  }
  .hex i {
    font-size: 1.1rem;
  }
  .project-card {
    padding: 0.5rem 0.2rem;
    border-radius: 10px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
  }
  .contact-form button {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
  }
}
@media (max-width: 350px) {
  .hero h1, .hero h2, .section h2 {
    font-size: 0.8rem;
  }
  .skills-list li {
    font-size: 0.7rem;
    padding: 0.2rem 0.3rem;
  }
  .hex {
    width: 24px;
    height: 28px;
  }
  .hex i {
    font-size: 0.6rem;
    padding: 2px !important;
  }
}

/* Animations */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* Anchor-only smooth scroll (not global) */
a[href^="#"] { scroll-behavior: smooth; }

/* Reveal-on-intersect pattern */
.reveal { opacity: 0; transform: translateY(16px); transition: transform .4s, opacity .4s; }
.reveal.in { opacity: 1; transform: none; }
@keyframes cardFadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* Coding Skills Hexagonal Icon Section */
.coding-icons-hex {
  text-align: center;
}
.coding-icons-hex h2 {
  margin-bottom: 2rem;
}
.hexagon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem 1.2rem;
  margin: 0 auto;
  max-width: 420px;
}
.hex {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(240, 247, 255, 0.85);
  border: 2.5px solid #e0e7ef;
  box-shadow: 0 4px 18px rgba(44,83,100,0.13), 0 0 0 4px rgba(0,230,168,0.06);
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.hex:hover {
  transform: scale(1.12) translateY(-8px);
  box-shadow: 0 8px 32px 0 rgba(0,230,168,0.25), 0 0 16px 4px #00e6a8;
  background: #e0f7fa;
}
.hex i {
  font-size: 2.3rem;
  transition: color 0.2s, transform 0.2s;
  background: none;
  border-radius: 0;
  padding: 0;
}

/* Remove colored background, border-radius, and padding from each .hex .fa-* selector */
.hex .fa-python,
.hex .fa-js,
.hex .fa-linux,
.hex .fa-database,
.hex .fa-git-alt,
.hex .fa-user-secret,
.hex .fa-r-project,
.hex .fa-html5,
.hex .fa-css3-alt,
.hex .fa-code {
  background: none !important;
  color: inherit;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Custom tooltip system for .hex */
.hex-tooltip {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  border: 2px solid #00e6a8;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 8px 25px rgba(0, 230, 168, 0.3);
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}
.hex:hover .hex-tooltip {
  opacity: 1;
  bottom: 125%;
  transform: translateX(-50%) scale(1.05);
}
.hex-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #2c3e50 transparent transparent transparent;
}
.hex-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #00e6a8 transparent transparent transparent;
  margin-top: -2px;
}
/* Remove previous .hex::after and .hex:hover::after tooltip CSS */
.hex::after, .hex:hover::after, .hex:hover::before { content: none !important; display: none !important; }

/* Brand colors for each code icon as circle background */
.hex .fa-python { color: #fff; }
.hex .fa-js { color: #222; }
.hex .fa-linux { color: #222; }
.hex .fa-database { color: #fff; }
.hex .fa-git-alt { color: #fff; }
.hex .fa-user-secret { color: #fff; }
.hex .fa-r-project { color: #fff; }
.hex .fa-html5 { color: #fff; }
.hex .fa-css3-alt { color: #fff; }
.hex .fa-code { color: #fff; }
.hex.python { background: #3776AB; }
.hex.javascript { background: #F7DF1E; }
.hex.linux { background: #FCC624; }
.hex.database { background: #4DB33D; }
.hex.git { background: #F05032; }
.hex.cybersecurity { background: #23272F; }
.hex.r { background: #276DC3; }
.hex.html5 { background: #E34F26; }
.hex.css3 { background: #1572B6; }
.hex.cpp { background: #00599C; }

/* Make tooltip box and text smaller */
.hex-tooltip {
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
}

/* Visually hidden (accessible) class for labels */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Modern contact form improvements */
.contact-form input,
.contact-form textarea {
  background: #fafdff;
  border: 1.5px solid #e0e7ef;
  box-shadow: 0 2px 8px rgba(44,83,100,0.04);
  transition: border 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #00e6a8;
  outline: none;
  box-shadow: 0 4px 16px rgba(0,230,168,0.10);
}
.contact-form button {
  background: linear-gradient(90deg, #00e6a8 0%, #2979ff 100%);
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(44,83,100,0.08);
}
.contact-form button:hover {
  background: linear-gradient(90deg, #2979ff 0%, #00e6a8 100%);
  box-shadow: 0 4px 16px rgba(0,230,168,0.13);
}

/* Contact Section Modern Card Styles */
.contact.section {
  background: none;
  padding-bottom: 3.5rem;
}
.contact-subtitle {
  color: #2979ff;
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.contact-card {
  background: var(--glass);
  box-shadow: 0 8px 32px 0 rgba(41,121,255,0.13), 0 2px 8px rgba(44,83,100,0.08);
  border-radius: 22px;
  padding: 2.2rem 2.5rem 2.5rem 2.5rem;
  max-width: 420px;
  margin: 0 auto;
  backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--card-border);
  animation: cardFadeIn 1.1s cubic-bezier(.4,0,.2,1) both;
  position: relative;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #2979ff 0%, #00e6a8 100%);
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.18;
  z-index: 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 1;
  position: relative;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.92);
  border: 1.5px solid #e0e7ef;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 1.08rem;
  font-family: inherit;
  color: #1a2236;
  box-shadow: 0 2px 8px rgba(44,83,100,0.04);
  transition: border 0.2s, box-shadow 0.2s;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #2979ff;
  outline: none;
  box-shadow: 0 4px 16px rgba(41,121,255,0.10);
}
.contact-form textarea {
  min-height: 110px;
  max-height: 220px;
}
.contact-form button {
  background: linear-gradient(90deg, #2979ff 0%, #00e6a8 100%);
  color: #fff;
  border: none;
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  font-size: 1.13rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(44,83,100,0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.contact-form button i {
  font-size: 1.1em;
  margin-right: 0.2em;
}
.contact-form button:hover {
  background: linear-gradient(90deg, #00e6a8 0%, #2979ff 100%);
  box-shadow: 0 4px 16px rgba(0,230,168,0.13);
  transform: translateY(-2px) scale(1.04);
}
#contactSuccess {
  margin-top: 1.2em;
  color: #00b894;
  font-weight: 600;
  font-size: 1.1em;
  text-align: center;
  z-index: 2;
}
@media (max-width: 700px) {
  .contact-card {
    padding: 1.2rem 0.7rem 1.5rem 0.7rem;
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .contact-card {
    padding: 0.7rem 0.1rem 1rem 0.1rem;
    border-radius: 12px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.98rem;
    padding: 0.6rem 0.7rem;
  }
  .contact-form button {
    font-size: 1rem;
    padding: 0.7rem 0.8rem;
  }
}

.logo {
  font-weight: 900;
  color: #fff !important;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(41,121,255,0.18);
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-bolt {
  font-size: 1.5rem;
  color: #fff200;
  filter: drop-shadow(0 0 32px #fff200cc) drop-shadow(0 0 12px #2979ff);
  background: linear-gradient(180deg, #fff200 0%, #fff 40%, #2979ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.4em;
  vertical-align: middle;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1), opacity 0.7s cubic-bezier(.4,0,.2,1);
  display: inline-block;
}
.logo-bolt-appear {
  opacity: 0;
  transform: translateX(-0.7em) scale(0.7);
  transition: opacity 0.38s cubic-bezier(.4,0,.2,1), transform 0.38s cubic-bezier(.4,0,.2,1);
}
.logo-bolt-appear.logo-bolt-appear-active {
  opacity: 1;
  transform: none;
}
#bolt-loader {
  font-size: 5.5rem;
  color: #fff200;
  filter: drop-shadow(0 0 32px #fff200cc) drop-shadow(0 0 12px #2979ff);
  background: linear-gradient(180deg, #fff200 0%, #fff 40%, #2979ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: boltFlash 1.1s cubic-bezier(.4,0,.2,1) infinite;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1), opacity 0.7s cubic-bezier(.4,0,.2,1);
  will-change: transform, opacity;
}
#bolt-loader.move-to-logo {
  animation: none;
  z-index: 10000;
}
@media (max-width: 700px) {
  .logo {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  .logo {
    font-size: 0.9rem;
  }
}

@media (max-width: 700px) {
  .about p,
  .skills-list,
  .projects .container,
  .contact-card,
  .section > .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
@media (max-width: 480px) {
  .about p,
  .skills-list,
  .projects .container,
  .contact-card,
  .section > .container {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}

#loader {
  position: fixed;
  inset: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: 100%;
  height: 100%;
  background: rgba(24,28,47,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}
#loader .fa-bolt {
  font-size: 5.5rem;
  color: #fff200;
  filter: drop-shadow(0 0 32px #fff200cc) drop-shadow(0 0 12px #2979ff);
  background: linear-gradient(180deg, #fff200 0%, #fff 40%, #2979ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: boltFlash 1.1s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes boltFlash {
  0% {
    filter: drop-shadow(0 0 32px #fff200cc) drop-shadow(0 0 12px #2979ff);
    opacity: 1;
    background-position: 0% 0%;
  }
  40% {
    filter: drop-shadow(0 0 64px #fff200) drop-shadow(0 0 32px #2979ff);
    opacity: 1;
    background-position: 0% 80%;
  }
  60% {
    filter: drop-shadow(0 0 24px #fff200cc) drop-shadow(0 0 8px #2979ff);
    opacity: 0.85;
    background-position: 0% 100%;
  }
  100% {
    filter: drop-shadow(0 0 32px #fff200cc) drop-shadow(0 0 12px #2979ff);
    opacity: 1;
    background-position: 0% 0%;
  }
}
#loader.fade {
  opacity: 0;
  pointer-events: none;
}

/* About Section Video Embed */
.about-video-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.about-video-card {
  background: var(--glass);
  box-shadow: 0 8px 32px 0 rgba(41,121,255,0.13), 0 2px 8px rgba(44,83,100,0.08);
  border-radius: 18px;
  padding: 0.7rem;
  max-width: 520px;
  width: 100%;
  backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--card-border);
  overflow: hidden;
}
.about-video {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 12px;
  display: block;
  background: #000;
}

/* Education Section */
.education-section {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.education-section h3 {
  font-size: 1.3rem;
  color: #2979ff;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.education-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.education-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(44,83,100,0.13);
  border: 1.5px solid var(--card-border);
  padding: 1.3rem 2.1rem 1.1rem 2.1rem;
  min-width: 220px;
  max-width: 300px;
  text-align: left;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.education-card:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 8px 32px 0 rgba(41,121,255,0.18);
}
.edu-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ff6f61;
  margin-bottom: 0.3rem;
}
.edu-institute {
  font-size: 1.01rem;
  color: #2c5364;
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.edu-year {
  font-size: 0.98rem;
  color: #2979ff;
  margin-bottom: 0.2rem;
}
.edu-grade {
  font-size: 0.97rem;
  color: #00b894;
  font-weight: 600;
}
/* Board and Group styles for education cards */
.edu-board, .edu-group {
  font-size: 0.97rem;
  color: #6366f1;
  margin-bottom: 0.1rem;
  font-weight: 500;
}
.edu-board strong, .edu-group strong {
  color: #2979ff;
  font-weight: 700;
  margin-right: 0.2em;
}
/* Education Card Icon Styles */
.edu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.edu-icon i {
  font-size: 2.1rem;
  color: #2979ff;
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  border-radius: 50%;
  padding: 0.45em;
  box-shadow: 0 2px 8px rgba(41,121,255,0.10);
  transition: color 0.2s, box-shadow 0.2s;
}
.education-card:hover .edu-icon i {
  color: #00e6a8;
  box-shadow: 0 4px 16px rgba(0,230,168,0.13);
}
@media (max-width: 700px) {
  .education-cards {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .about-video-card {
    max-width: 100%;
    padding: 0.2rem;
  }
}

/* Project Language Usage Bar Styles */
.lang-bar {
  display: flex;
  height: 1.5em;
  border-radius: 8px;
  overflow: hidden;
  margin: 1em 0 0.5em 0;
  background: #eaf1fb;
  box-shadow: 0 2px 8px rgba(44,83,100,0.06);
}
.lang-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95em;
  font-weight: 600;
  color: #fff;
  height: 100%;
  white-space: nowrap;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
.lang-segment.html { background: #e44d26; }
.lang-segment.css { background: #1572b6; }
.lang-segment.js { background: #f7df1e; color: #222; }

@media (max-width: 700px) {
  .lang-bar {
    height: 1.1em;
    margin: 0.7em 0 0.3em 0;
  }
  .lang-segment {
    font-size: 0.85em;
  }
}
@media (max-width: 480px) {
  .lang-bar {
    height: 0.9em;
    margin: 0.5em 0 0.2em 0;
  }
  .lang-segment {
    font-size: 0.7em;
  }
}

/* Project Card Buttons */
.project-links {
  display: flex;
  gap: 0.7em;
  margin-top: 0.8em;
}
.live-btn, .source-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1em;
  font-weight: 600;
  padding: 0.45em 1.1em;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(44,83,100,0.08);
}
.live-btn {
  background: #ff6f61;
  color: #fff;
}
.live-btn:hover {
  background: #e44d26;
  color: #fff;
  transform: scale(1.06) translateY(-2px);
}
.source-btn {
  background: #24292e;
  color: #fff;
}
.source-btn:hover {
  background: #2979ff;
  color: #fff;
  transform: scale(1.06) translateY(-2px);
}
.project-links i {
  font-size: 1.1em;
}

/* Compact Project Card Buttons for Desktop */
.live-btn, .source-btn {
  font-size: 0.85em;
  padding: 0.32em 0.7em;
  gap: 0.3em;
}
.project-links i {
  font-size: 1em;
}
@media (max-width: 700px) {
  .live-btn, .source-btn {
    font-size: 1em;
    padding: 0.45em 1.1em;
    gap: 0.5em;
  }
  .project-links i {
    font-size: 1.1em;
  }
}
/* C language bar color */
.lang-segment.c { background: #00599c; }

/* Development Stats Section */
.stats.section {
  background: linear-gradient(120deg, #f0fdfa 0%, #e0e7ff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(44,83,100,0.10);
  margin-bottom: 2.5rem;
  animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1) both;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stats-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(44,83,100,0.13);
  border: 1.5px solid var(--card-border);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00e6a8 0%, #2979ff 100%);
}

.stats-card:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 8px 32px 0 rgba(41,121,255,0.18);
}

.stats-card h3 {
  font-size: 1.2rem;
  color: #2c5364;
  margin-bottom: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.stats-card h3 i {
  color: #2979ff;
  font-size: 1.1em;
}

.stats-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s;
}

.stats-card:hover .stats-content img {
  transform: scale(1.05);
}

/* Reserve space for external stat images to avoid CLS */
.stats-content img {
  aspect-ratio: 2.2 / 1;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-card {
    padding: 1rem;
  }
  
  .stats-card h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .stats-card {
    padding: 0.8rem;
  }
  
  .stats-card h3 {
    font-size: 1rem;
  }
}

/* Email Signature Section */
.email-signature-section {
  background: linear-gradient(120deg, #f0fdfa 0%, #e0e7ff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(44,83,100,0.10);
  margin-bottom: 2.5rem;
  animation: fadeIn 1.2s cubic-bezier(.4,0,.2,1) both;
}

.signature-subtitle {
  text-align: center;
  color: #2979ff;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.signature-preview {
  max-width: 600px;
  margin: 0 auto;
}

.signature-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid #e0e7ef;
}

.signature-header {
  background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}

.signature-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #00e6a8;
}

.signature-header p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.signature-content {
  padding: 1.5rem;
}

.signature-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.signature-info .info-section h4 {
  color: #2c5364;
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.signature-info .info-section p {
  margin: 3px 0;
  font-size: 0.85rem;
  color: #555;
}

.signature-info .info-section a {
  color: #2979ff;
  text-decoration: none;
  font-weight: 500;
}

.signature-info .info-section a:hover {
  color: #00e6a8;
}

.signature-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.signature-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: #2979ff;
  text-decoration: none;
  font-size: 2rem;
  transition: transform 0.2s, color 0.2s;
  margin: 0 0.6rem;
}

.signature-links a:hover {
  transform: scale(1.1);
  color: #00e6a8;
}

.signature-footer {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.signature-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

.signature-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.signature-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44,83,100,0.08);
}

.signature-btn.primary {
  background: linear-gradient(135deg, #2979ff 0%, #00e6a8 100%);
  color: #fff;
}

.signature-btn.secondary {
  background: #fff;
  color: #2979ff;
  border: 2px solid #2979ff;
}

.signature-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(41,121,255,0.2);
}

.signature-btn.primary:hover {
  background: linear-gradient(135deg, #00e6a8 0%, #2979ff 100%);
}

.signature-btn.secondary:hover {
  background: #2979ff;
  color: #fff;
}

@media (max-width: 700px) {
  .signature-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .signature-links {
    gap: 0.5rem;
  }
  
  .signature-links a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .signature-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .signature-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .signature-header {
    padding: 1rem;
  }
  
  .signature-header h3 {
    font-size: 1.3rem;
  }
  
  .signature-content {
    padding: 1rem;
  }
  
  .signature-links {
    flex-direction: column;
    align-items: center;
  }
  
  .signature-links a {
    width: 100%;
    justify-content: center;
  }
  
  .signature-actions {
    gap: 0.8rem;
  }
  
  .signature-btn {
    max-width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Certifications Section Styles */
.certification-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.cert-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(44,83,100,0.13);
  border: 1.5px solid var(--card-border);
  padding: 1.7rem 2.2rem 1.3rem 2.2rem;
  min-width: 240px;
  max-width: 340px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cert-card:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 8px 32px 0 rgba(41,121,255,0.18);
}
.cert-icon {
  font-size: 2.5rem;
  color: #ff6f61;
  margin-bottom: 0.7rem;
}
.cert-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c5364;
  margin-bottom: 0.3rem;
}
.cert-org {
  font-size: 1.01rem;
  color: #2979ff;
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.cert-date, .cert-id {
  font-size: 0.97rem;
  color: #6366f1;
  margin-bottom: 0.1rem;
  font-weight: 500;
}
.cert-verify {
  display: inline-block;
  margin-top: 0.7em;
  background: #ff6f61;
  color: #fff;
  padding: 0.45em 1.1em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(44,83,100,0.08);
}
.cert-verify:hover {
  background: #e44d26;
  color: #fff;
  transform: scale(1.06) translateY(-2px);
}
/* Certificate Image Styles */
.cert-img-wrapper {
  margin-top: 1.1em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cert-img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(44,83,100,0.13);
  border: 1.5px solid var(--card-border);
  background: #fff;
  object-fit: contain;
  aspect-ratio: 16 / 9;
}
@media (max-width: 700px) {
  .cert-img {
    max-height: 180px;
    border-radius: 8px;
  }
}
@media (max-width: 480px) {
  .cert-img {
    max-height: 110px;
    border-radius: 6px;
  }
}
@media (max-width: 700px) {
  .cert-card {
    padding: 1.1rem 0.7rem 1rem 0.7rem;
    max-width: 100%;
  }
  .certification-list {
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .cert-card {
    padding: 0.7rem 0.1rem 1rem 0.1rem;
    border-radius: 12px;
  }
  .cert-title {
    font-size: 1rem;
  }
  .cert-icon {
    font-size: 1.5rem;
  }
}
