/* Glassmorphism & Neumorphism Portfolio Styles for Usman Sarwar */
:root {
  --primary: #3a86ff;
  --secondary: #8338ec;
  --bg: #f8fafc;
  --glass-bg: rgba(255,255,255,0.25);
  --glass-blur: 16px;
  --text: #22223b;
  --accent: #ffbe0b;
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  --border: rgba(255,255,255,0.18);
}

/* Smooth Scroll Transitions */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-reveal.slide-left {
  transform: translateX(-50px);
}

.scroll-reveal.slide-left.visible {
  transform: translateX(0);
}

.scroll-reveal.slide-right {
  transform: translateX(50px);
}

.scroll-reveal.slide-right.visible {
  transform: translateX(0);
}

.scroll-reveal.scale-up {
  transform: scale(0.8) translateY(30px);
}

.scroll-reveal.scale-up.visible {
  transform: scale(1) translateY(0);
}

.scroll-reveal.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.scroll-reveal.fade-in.visible {
  opacity: 1;
}

/* Staggered animations for skills */
.skill {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered animations for project cards */
.project-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}



/* Staggered animations for service cards */
.service-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animations for certificate cards */
.certificate-card {
  opacity: 0;
  transform: translateY(25px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificate-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
[data-theme="dark"] {
  --bg: #181a1b;
  --glass-bg: rgba(24,26,27,0.7);
  --text: #f8fafc;
  --shadow: 0 8px 32px 0 rgba(0,0,0,0.45);
  --border: rgba(255,255,255,0.08);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  min-height: 100vh;
}
body {
  transition: background 0.4s, color 0.4s;
}
.glass {
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  border-radius: 18px;
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
}
nav#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  margin: 1rem auto;
  max-width: 1200px;
  background: var(--glass-bg);
}
.nav-logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-usman {
  color: var(--text);
}
.nav-sarwar {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1.5px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.25s cubic-bezier(.4,0,.2,1);
  padding: 0.2rem 0.1rem;
}
.nav-links a::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.nav-links a:hover, .nav-links a:focus {
  color: var(--primary);
}
.nav-links a:hover::after, .nav-links a:focus::after {
  transform: scaleX(1);
}
.toggle-mode {
  cursor: pointer;
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-moon, .icon-sun {
  width: 22px; height: 22px;
  display: inline-block;
  background-size: contain;
}
.icon-moon { background-image: url('data:image/svg+xml;utf8,<svg fill="%233a86ff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21 12.79A9 9 0 0111.21 3a1 1 0 00-1.13 1.32A7 7 0 0012 21a7 7 0 009.68-7.66 1 1 0 00-1.32-1.13z"/></svg>'); }
.icon-sun { background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffbe0b" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="5"/><g><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></g></svg>'); }

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
}
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #181a1b 0%, #23272f 100%);
}
#bg-animation {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 4.5rem 3rem 2.5rem 3rem;
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  box-shadow: 0 12px 48px 0 rgba(58,134,255,0.13);
  border-radius: 38px;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.cta-btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.85rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 32px;
  box-shadow: 0 4px 24px 0 rgba(58,134,255,0.18);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: 1px;
}
.cta-btn:hover {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(131,56,236,0.18);
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1;
  pointer-events: none;
}
.hero-wave svg {
  display: block;
  width: 100vw;
  height: 90px;
}
.typewriter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  min-height: 3.5rem;
  margin-bottom: 1rem;
}
.hero-voice {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 2.5rem;
}
.scroll-indicator {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid var(--primary);
  border-radius: 16px;
  position: relative;
}
.scroll-indicator span::after {
  content: '';
  display: block;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  animation: scrollDown 1.2s infinite;
}
@keyframes scrollDown {
  0% { top: 8px; opacity: 1; }
  80% { top: 22px; opacity: 0.5; }
  100% { top: 8px; opacity: 1; }
}
.about-section, .services-section, .projects-section, .resume-section, .certificates-section, .contact-section {
  margin: 3rem auto;
  max-width: 1100px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--secondary);
  text-align: center;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.about-text {
  flex: 2;
  min-width: 260px;
}
.about-img {
  flex: 1;
  min-width: 180px;
  display: flex;
  justify-content: center;
}
.about-img img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow);
}
.timeline {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--primary);
  list-style: none;
}
.timeline li {
  margin-bottom: 1rem;
  position: relative;
  color: var(--text);
}
.timeline li span {
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.5rem;
}
.counters {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}
.counter {
  background: var(--glass-bg);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 90px;
}
.counter span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.projects-section {
  min-height: 60vh;
}
.project-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  background: var(--glass-bg);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #fff;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}
.project-card {
  background: var(--glass-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  position: relative;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px 0 rgba(58,134,255,0.18);
}
.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.project-card .project-info {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card .project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.project-card .project-desc {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.project-card .project-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.project-card .project-links a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.project-card .project-links a:hover {
  color: var(--accent);
}
.resume-section .resume-content {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.resume-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 0.5rem;
}
.resume-btn:hover {
  background: var(--secondary);
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 700px;
  width: 90vw;
  box-shadow: var(--shadow);
  position: relative;
}
.modal-content iframe {
  width: 100%;
  height: 70vh;
  border-radius: 8px;
  border: none;
}
.close-modal {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 2rem;
  color: var(--secondary);
  cursor: pointer;
}
.certificates-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.certificate-card {
  min-width: 260px;
  background: var(--glass-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s;
}
.certificate-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}
.certificate-card:hover {
  transform: scale(1.05);
}

.contact-section {
  position: relative;
  margin: 3rem auto;
  max-width: 1100px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
  overflow: visible;
  background: transparent;
}
.contact-card {
  display: flex;
  gap: 2.5rem;
  background: var(--glass-bg);
  border-radius: 28px;
  box-shadow: 0 8px 32px 0 rgba(58,134,255,0.10);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 2;
  align-items: stretch;
}
.contact-info {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-right: 1.5rem;
  border-right: 1.5px solid var(--border);
}
.contact-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.contact-message {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.contact-socials {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.contact-socials a {
  color: var(--primary);
  font-size: 2rem;
  transition: color 0.2s, transform 0.2s;
}
.contact-socials a:hover {
  color: var(--accent);
  transform: scale(1.18) rotate(-8deg);
}
.contact-details {
  margin-top: 1.2rem;
  color: var(--text);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.icon-location {
  display: inline-block;
  width: 22px; height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 0.4rem;
  vertical-align: middle;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%233a86ff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z"/></svg>');
}
.contact-form-area {
  flex: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.5rem;
}
.contact-form-area form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--glass-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(58,134,255,0.08);
  padding: 2rem 1.2rem;
}
.contact-form-area input, .contact-form-area textarea {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  color: var(--text);
  font-size: 1rem;
  resize: none;
}
.contact-form-area button[type="submit"] {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px 0 rgba(58,134,255,0.10);
  font-size: 1.08rem;
  letter-spacing: 0.5px;
}
.contact-form-area button[type="submit"]:hover {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform: translateY(-2px) scale(1.04);
}
.contact-bg-accent {
  position: absolute;
  right: -80px; bottom: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle at 60% 60%, #3a86ff33 0%, #8338ec11 100%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(12px);
  pointer-events: none;
}
.floating-chat {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px 0 rgba(58,134,255,0.18);
  cursor: pointer;
  z-index: 300;
  animation: floatChat 2s infinite alternate;
}
@keyframes floatChat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
.icon-mail {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" stroke="%2322223b" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="5" width="18" height="14" rx="3" fill="white" stroke="%2322223b" stroke-width="2"/><polyline points="3,7 12,13 21,7" fill="none" stroke="%2322223b" stroke-width="2"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}
.footer {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 1rem;
  color: var(--text);
  background: var(--glass-bg);
  margin-top: 3rem;
}
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s;
}
.loader-logo {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.2em;
  background: var(--glass-bg);
  padding: 1.5rem 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: pulseLogo 1.5s infinite alternate;
}
@keyframes pulseLogo {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-img {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow);
  background: var(--glass-bg);
}
.hero-text {
  flex: 1;
  min-width: 220px;
  text-align: left;
}
.hero-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0.5rem 0 0.2rem 0;
}
.hero-brief {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1200;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24,26,27,0.97);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.mobile-menu li {
  margin: 1.5rem 0;
}
.mobile-menu a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--accent);
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-content { padding: 2.5rem 1rem 1.5rem 1rem; max-width: 98vw; border-radius: 24px; }
  .hero-wave svg { height: 60px; }
}
/* Skills Section */
.skills-section {
  margin: 3rem auto;
  max-width: 900px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
}
.skills-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skills-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.skill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--glass-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem;
  margin-bottom: 0.5rem;
  min-width: 180px;
}
.skill-icon {
  display: inline-block;
  width: 32px; height: 32px;
  margin-bottom: 0.5rem;
  background-size: contain;
  background-repeat: no-repeat;
}
.icon-ai { background-image: url('data:image/svg+xml;utf8,<svg fill="%233a86ff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"/><text x="12" y="16" font-size="8" text-anchor="middle" fill="white">AI</text></svg>'); }
.icon-iot { background-image: url('data:image/svg+xml;utf8,<svg fill="%238338ec" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"/><text x="12" y="16" font-size="8" text-anchor="middle" fill="white">IoT</text></svg>'); }
.icon-web { background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffbe0b" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="6" width="16" height="12" rx="2"/><rect x="8" y="10" width="8" height="2" fill="white"/></svg>'); }
.icon-mobile { background-image: url('data:image/svg+xml;utf8,<svg fill="%233a86ff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="7" y="3" width="10" height="18" rx="2"/><circle cx="12" cy="19" r="1" fill="white"/></svg>'); }
.icon-cpp { background-image: url('data:image/svg+xml;utf8,<svg fill="%238338ec" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="4" width="16" height="16" rx="4"/><text x="12" y="16" font-size="8" text-anchor="middle" fill="white">C++</text></svg>'); }
.icon-comm { background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffbe0b" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><ellipse cx="12" cy="12" rx="10" ry="7"/><ellipse cx="12" cy="12" rx="6" ry="3" fill="white"/></svg>'); }
.icon-team { background-image: url('data:image/svg+xml;utf8,<svg fill="%233a86ff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="12" r="4"/><circle cx="16" cy="12" r="4"/><rect x="4" y="16" width="16" height="4" rx="2" fill="white"/></svg>'); }
.icon-network { background-image: url('data:image/svg+xml;utf8,<svg fill="%233a86ff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="3"/><circle cx="6" cy="6" r="2"/><circle cx="18" cy="6" r="2"/><circle cx="6" cy="18" r="2"/><circle cx="18" cy="18" r="2"/><line x1="6" y1="6" x2="12" y2="12" stroke="%233a86ff" stroke-width="1"/><line x1="18" y1="6" x2="12" y2="12" stroke="%233a86ff" stroke-width="1"/><line x1="6" y1="18" x2="12" y2="12" stroke="%233a86ff" stroke-width="1"/><line x1="18" y1="18" x2="12" y2="12" stroke="%233a86ff" stroke-width="1"/></svg>'); }
.icon-os { background-image: url('data:image/svg+xml;utf8,<svg fill="%238338ec" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="4" width="16" height="16" rx="2"/><rect x="6" y="6" width="12" height="2" fill="white"/><rect x="6" y="10" width="8" height="2" fill="white"/><rect x="6" y="14" width="10" height="2" fill="white"/></svg>'); }
.icon-circuit { background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffbe0b" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="4" width="16" height="16" rx="2"/><circle cx="8" cy="8" r="1" fill="white"/><circle cx="16" cy="8" r="1" fill="white"/><circle cx="8" cy="16" r="1" fill="white"/><circle cx="16" cy="16" r="1" fill="white"/><line x1="8" y1="8" x2="16" y2="8" stroke="white" stroke-width="1"/><line x1="8" y1="16" x2="16" y2="16" stroke="white" stroke-width="1"/><line x1="8" y1="8" x2="8" y2="16" stroke="white" stroke-width="1"/><line x1="16" y1="8" x2="16" y2="16" stroke="white" stroke-width="1"/></svg>'); }
.icon-team-collab { background-image: url('data:image/svg+xml;utf8,<svg fill="%233a86ff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="6" cy="8" r="3"/><circle cx="18" cy="8" r="3"/><circle cx="12" cy="16" r="3"/><path d="M6 11v3a4 4 0 0 0 4 4h4a4 4 0 0 0 4-4v-3" stroke="%233a86ff" stroke-width="1" fill="none"/></svg>'); }
.icon-time { background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffbe0b" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10"/><polyline points="12,6 12,12 16,14" stroke="white" stroke-width="2" fill="none"/></svg>'); }
.skill-name {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--secondary);
}
.skill-bar {
  width: 100%;
  height: 10px;
  background: #e0e7ef;
  border-radius: 6px;
  margin-bottom: 0.2rem;
  margin-top: 0.2rem;
  overflow: hidden;
}
[data-theme="dark"] .skill-bar {
  background: #23272f;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 6px;
  transition: width 1s;
}
@media (max-width: 600px) {
  .skills-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .skills-section { padding: 1.2rem 0.5rem; }
}

/* Services Section */
.services-section {
  padding: 3rem 2rem;
  text-align: center;
}

.services-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(31, 38, 135, 0.25);
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  position: relative;
}

.service-icon span {
  width: 28px;
  height: 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card p {
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
  opacity: 0.9;
  font-size: 0.95rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 0.4rem 0;
  color: var(--text);
  opacity: 0.8;
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .service-card {
    padding: 1.2rem;
  }
  
  .service-card h3 {
    font-size: 1.1rem;
  }
}
@media (max-width: 600px) {
  nav#navbar { flex-direction: column; gap: 1rem; padding: 0.7rem 1rem; }
  .hero-content { padding: 1.2rem 0.2rem 0.5rem 0.2rem; max-width: 100vw; border-radius: 12px; }
  .hero-wave svg { height: 40px; }
  .cta-btn { font-size: 1rem; padding: 0.7rem 1.2rem; }
  .hero-tagline { font-size: 0.98rem; }
  .about-section, .services-section, .projects-section, .resume-section, .certificates-section, .contact-section { padding: 1.2rem 0.5rem; }
  .section-title { font-size: 1.3rem; }
  .footer { font-size: 0.9rem; }
  .hero-img img { width: 100px; height: 100px; }
  .hero-name { font-size: 1.3rem; }
  .typewriter { font-size: 1.2rem; min-height: 2.2rem; }
  .hero-brief, .hero-voice { font-size: 0.98rem; }
}
@media (max-width: 400px) {
  .hero-img img { width: 70px; height: 70px; }
  .hero-content { padding: 1rem 0.2rem; }
}
@media (max-width: 900px) {
  .contact-card {
    flex-direction: column;
    padding: 1.5rem 0.5rem;
    border-radius: 18px;
  }
  .contact-info {
    border-right: none;
    border-bottom: 1.5px solid var(--border);
    padding-right: 0;
    padding-bottom: 1.2rem;
  }
  .contact-form-area {
    padding-left: 0;
    padding-top: 1.2rem;
  }
}
@media (max-width: 600px) {
  .contact-section { padding: 1.2rem 0.2rem; }
  .contact-card { padding: 0.7rem 0.1rem; }
  .contact-form-area form { padding: 1.2rem 0.5rem; }
  .contact-avatar img { width: 60px; height: 60px; }
  .contact-title { font-size: 1.1rem; }
  .contact-message { font-size: 0.95rem; }
  .contact-bg-accent { width: 120px; height: 120px; right: -30px; bottom: -30px; }
} 
.hero-img img, .about-img img, .contact-avatar img {
  width: 220px !important;
  height: 270px !important;
  border-radius: 28px;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 32px 0 rgba(58,134,255,0.18);
  background: var(--glass-bg);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.3s;
  clip-path: path('M40 0 Q0 0 0 40 Q0 230 40 270 Q180 270 220 230 Q220 40 180 0 Q110 0 40 0 Z');
  /* fallback for browsers not supporting path() */
  /* border-radius: 28px; */
}
.hero-img img:hover, .about-img img:hover, .contact-avatar img:hover {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 16px 48px 0 rgba(131,56,236,0.18), 0 0 32px 8px #3a86ff55;
  filter: brightness(1.08) saturate(1.15) drop-shadow(0 0 16px #8338ec55);
}
@media (max-width: 900px) {
  .hero-img img, .about-img img, .contact-avatar img { width: 160px !important; height: 200px !important; }
}
@media (max-width: 600px) {
  .hero-img img, .about-img img, .contact-avatar img { width: 110px !important; height: 140px !important; border-radius: 16px; }
} 
.hero-contacts {
  display: flex;
  gap: 1.2rem;
  margin: 1.2rem 0 0.7rem 0;
  justify-content: flex-start;
  align-items: center;
}
.hero-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  font-size: 1.5rem;
  color: var(--primary);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: 1.5px solid var(--border);
}
.hero-contact:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-4px) scale(1.08);
}
.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5 rem;
  font-weight: 600;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 0.9rem 2.2rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.2s;
}
.resume-download-btn:hover {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.icon-download {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 16V4m0 12l-4-4m4 4l4-4M4 20h16" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 0.2em;
}
.icon-phone {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%233a86ff" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 16.92v3a2 2 0 0 1-2.18 2A19.72 19.72 0 0 1 3.08 5.18 2 2 0 0 1 5.06 3h3a2 2 0 0 1 2 1.72c.13.81.36 1.6.7 2.34a2 2 0 0 1-.45 2.11l-1.27 1.27a16 16 0 0 0 6.29 6.29l1.27-1.27a2 2 0 0 1 2.11-.45c.74.34 1.53.57 2.34.7A2 2 0 0 1 22 16.92z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
} 
.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
.work-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5 rem;
  font-weight: 600;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 0.9rem 2.2rem;
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.2s;
  /* background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 0.9rem 2.2rem;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center; */
}
.work-btn:hover {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  transform: translateY(-2px) scale(1.04);
} 
.icon-whatsapp {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%2322223b" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="10" stroke="%2322223b" stroke-width="2" fill="white"/><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.472-.148-.67.15-.198.297-.767.967-.94 1.166-.173.198-.347.223-.644.075-.297-.149-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.372-.025-.521-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.372-.01-.571-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.099 3.205 5.077 4.369.71.306 1.263.489 1.695.625.712.227 1.36.195 1.872.118.571-.085 1.758-.719 2.007-1.413.248-.694.248-1.288.173-1.413-.074-.124-.272-.198-.57-.347z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}
.icon-linkedin-svg {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2322223b" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect width="24" height="24" rx="5" fill="white"/><path d="M6.94 8.5a1.06 1.06 0 1 1 0-2.12 1.06 1.06 0 0 1 0 2.12zM7.5 10h-1V18h1V10zm3.5 0h-1V18h1v-4c0-1.1.9-2 2-2s2 .9 2 2v4h1v-4c0-1.66-1.34-3-3-3s-3 1.34-3 3v4z" fill="%2322223b"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}
.icon-github-svg {
  display: inline-block;
  width: 1.3em;
  height: 1.3em;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%2322223b" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect width="24" height="24" rx="5" fill="white"/><path d="M12 2C6.48 2 2 6.58 2 12.26c0 4.48 2.87 8.28 6.84 9.63.5.09.68-.22.68-.48 0-.24-.01-.87-.01-1.7-2.78.62-3.37-1.36-3.37-1.36-.45-1.18-1.1-1.5-1.1-1.5-.9-.63.07-.62.07-.62 1 .07 1.53 1.05 1.53 1.05.89 1.56 2.34 1.11 2.91.85.09-.66.35-1.11.63-1.37-2.22-.26-4.56-1.14-4.56-5.07 0-1.12.39-2.03 1.03-2.75-.1-.26-.45-1.3.1-2.7 0 0 .84-.28 2.75 1.05A9.38 9.38 0 0 1 12 6.84c.85.004 1.71.12 2.51.35 1.91-1.33 2.75-1.05 2.75-1.05.55 1.4.2 2.44.1 2.81 0 .27.18.58.69.48A10.01 10.01 0 0 0 22 12.26C22 6.58 17.52 2 12 2z" fill="%2322223b"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}
.resume-download-btn, .work-btn {
  min-width: 220px;
  max-width: 220px;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
} 