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

/*--------------------------------------------------------------
# General Design Tokens
--------------------------------------------------------------*/
:root {
  --bg-main: #0b0c10;
  --bg-sidebar: #12131c;
  --bg-card: #1a1c23;
  --border-color: #262833;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --primary-color: #3b82f6;      /* Professional blue instead of violet */
  --primary-hover: #60a5fa;
  --accent-color: #10b981;       /* Professional green accent */
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.25s ease;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.65;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--text-primary);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: var(--primary-color);
  width: 44px;
  height: 44px;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
}

.back-to-top:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header (Fixed Top Navbar)
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  transition: var(--transition);
  z-index: 9997;
  background: rgba(18, 19, 28, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

#header .container {
  height: 100%;
}

#header .logo {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.3px;
}

#header .logo a {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

#header .logo .logo-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transition: var(--transition);
}

#header .logo a:hover .logo-avatar {
  transform: scale(1.06);
}

.header-social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.header-social-links a:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

#main {
  margin-left: 0;
  padding-top: 80px;
  min-height: 100vh;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.nav-menu ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu ul li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a, .nav-menu a:focus {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  padding: 10px 16px;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
}

.nav-menu a i, .nav-menu a:focus i {
  font-size: 18px;
  padding-right: 8px;
  color: var(--text-muted);
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover > a {
  color: var(--text-primary);
  background: var(--bg-card);
  text-decoration: none;
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover > a i {
  color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 18px;
  z-index: 9998;
  border: 0;
  font-size: 24px;
  transition: var(--transition);
  background-color: var(--primary-color);
  color: #fff;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }

  #header .container {
    justify-content: flex-start !important;
  }

  #header .logo {
    margin-right: auto;
  }

  .header-social-links {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: calc(100vh - 80px);
    background: var(--bg-sidebar);
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: var(--transition);
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu a {
    padding: 14px 16px;
  }

  .mobile-nav-active .nav-menu {
    transform: translateX(0);
  }
}

.mobile-nav-active {
  overflow: hidden;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(11, 12, 16, 0.97) 0%, rgba(18, 19, 28, 0.97) 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle at 22% 30%, rgba(59, 130, 246, 0.20), transparent 42%),
    radial-gradient(circle at 78% 68%, rgba(139, 92, 246, 0.16), transparent 46%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.10), transparent 55%);
  animation: heroAurora 20s ease-in-out infinite alternate;
  z-index: 0;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 75%);
  z-index: 0;
}

@keyframes heroAurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -3%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1); }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.hero-orb-1 {
  width: 280px;
  height: 280px;
  top: 18%;
  left: 12%;
  background: rgba(59, 130, 246, 0.35);
  animation: floatOrb1 16s ease-in-out infinite;
}

.hero-orb-2 {
  width: 220px;
  height: 220px;
  bottom: 15%;
  right: 16%;
  background: rgba(139, 92, 246, 0.30);
  animation: floatOrb2 20s ease-in-out infinite;
}

.hero-orb-3 {
  width: 180px;
  height: 180px;
  top: 55%;
  left: 58%;
  background: rgba(16, 185, 129, 0.22);
  animation: floatOrb3 24s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, -35px); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, 25px) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  #hero::before {
    animation: none;
  }
}

#hero .hero-container {
  padding: 0 80px;
  position: relative;
  z-index: 1;
}

#hero h1 {
  margin: 0 0 15px 0;
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
}

#hero p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 400;
}

#hero p span {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
}

@media (max-width: 768px) {
  #hero .hero-container {
    padding: 0 30px;
  }
  #hero h1 {
    font-size: 36px;
  }
  #hero p {
    font-size: 18px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-bg {
  background: rgba(255, 255, 255, 0.015);
}

.section-title {
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 15px;
  position: relative;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 0;
}

.section-title p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 800px;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .content h3 {
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 1.5;
}

.about .content ul strong {
  margin-right: 8px;
  color: var(--text-primary);
  white-space: nowrap;
}

.about .content ul span {
  color: var(--text-secondary);
}

.about .content ul i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--primary-color);
  line-height: 0;
  align-self: center;
}

.about-photo-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), transparent 60%);
  pointer-events: none;
}

.about-photo-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  position: relative;
}

/*--------------------------------------------------------------
# Facts (Stats Dashboard)
--------------------------------------------------------------*/
.facts .count-box {
  padding: 24px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: var(--transition);
  text-align: center;
}

.facts .count-box:hover {
  border-color: var(--primary-color);
}

.facts .count-box i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: inline-block;
}

.facts .count-box span {
  font-size: 36px;
  line-height: 1;
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.facts .count-box p {
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/*--------------------------------------------------------------
# Skills / Tech Stack Grid
--------------------------------------------------------------*/
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skills-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
}

.skills-category h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
}

/*--------------------------------------------------------------
# Resume Timeline
--------------------------------------------------------------*/
.resume .resume-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.resume .resume-item {
  padding: 0 0 30px 24px;
  margin-top: -2px;
  border-left: 1px solid var(--border-color);
  position: relative;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: -5px;
  top: 6px;
  background: var(--bg-main);
  border: 2px solid var(--primary-color);
}

.resume .resume-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.resume .resume-item h5 {
  font-size: 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  padding: 2px 8px;
  display: inline-block;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.resume .resume-item p.company {
  font-style: italic;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.resume .resume-item ul {
  padding-left: 20px;
  color: var(--text-secondary);
}

.resume .resume-item ul li {
  padding-bottom: 6px;
  font-size: 14px;
}

.resume .resume-item .tags-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.resume .resume-item .tags-row span {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.resume .resume-item:last-child {
  padding-bottom: 0;
  border-left: 0;
}

.resume .resume-item:last-child::before {
  left: -5px;
}

/*--------------------------------------------------------------
# Portfolio / Projects
--------------------------------------------------------------*/
.portfolio #portfolio-flters {
  padding: 2px 8px;
  margin: 0 auto 30px auto;
  list-style: none;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: inline-flex;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  border-radius: 3px;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #fff;
  background: var(--primary-color);
}

.portfolio .portfolio-wrap {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.portfolio .portfolio-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio .portfolio-wrap:hover img {
  transform: scale(1.03);
}

.portfolio .portfolio-wrap::before {
  content: "";
  background: rgba(11, 12, 16, 0.9);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transition: var(--transition);
  z-index: 2;
  opacity: 0;
}

.portfolio .portfolio-wrap .portfolio-links {
  opacity: 0;
  left: 0;
  right: 0;
  bottom: -20px;
  z-index: 3;
  position: absolute;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 20px;
}

.portfolio .portfolio-wrap .portfolio-links a {
  color: #fff;
  font-size: 18px;
  background: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.portfolio .portfolio-wrap .portfolio-links a:hover {
  background: var(--primary-hover);
}

.portfolio .portfolio-wrap:hover::before {
  opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-links {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Testimonials (Swiper & Visibility)
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  box-sizing: content-box;
  text-align: center;
  min-height: 240px;
  padding: 20px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 20px auto;
  max-width: 700px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  position: relative;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--primary-color);
  opacity: 0.25;
  font-size: 20px;
  margin: 0 4px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  margin: 0 auto 10px auto;
  display: block;
}

.testimonials .testimonial-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 5px 0;
  color: var(--text-primary);
}

.testimonials .testimonial-item h4 {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  background-color: var(--text-muted);
  opacity: 0.4;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  opacity: 1;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info {
  padding: 30px;
  background: var(--bg-card);
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.contact .info i {
  font-size: 18px;
  color: var(--primary-color);
  float: left;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition);
}

.contact .info .address,
.contact .info .email,
.contact .info .phone {
  padding: 0 0 20px 54px;
}

.contact .info h4 {
  padding: 0 0 0 54px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.contact .info p {
  padding: 0 0 0 54px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact .contact-cta {
  display: flex;
  flex-direction: column;
}

.contact .contact-cta h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.contact .contact-cta p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact .contact-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.btn-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-cta i {
  font-size: 18px;
}

.btn-cta.primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-cta.primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-cta.outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-cta.outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# Floating Calendly Tab
--------------------------------------------------------------*/
.calendly-fab {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: var(--bg-card);
  color: var(--text-secondary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9996;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.calendly-fab span {
  display: none;
}

.calendly-fab:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.calendly-fab i {
  font-size: 20px;
  line-height: 0;
}

@media (max-width: 1199px) {
  .calendly-fab {
    top: auto;
    bottom: 90px;
    right: 16px;
    transform: none;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 30px;
  color: var(--text-secondary);
  font-size: 14px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
}