/**
* Nibaka Portfolio — Glassy Modern Redesign
* Designer: Nika Mirzabagher
*/

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .header-toggle {
    display: block !important;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
  }
}

@media (max-width: 1199px) {
  .navmenu {
    overflow-y: auto;
    max-height: 100vh;
  }
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --default-font: 'Roboto', system-ui, sans-serif;
  --heading-font: 'Roboto', sans-serif;
  --mono-font: 'Roboto', monospace;
  --nav-font: 'Roboto', sans-serif;
}

:root {
  --background-color: #0a0f1e;
  --default-color: #c8d3e8;
  --heading-color: #eef2ff;
  --accent-color: #6c8eff;
  --accent-glow: rgba(108, 142, 255, 0.35);
  --accent-secondary: #a78bfa;
  --surface-color: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.09);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(14, 20, 40, 0.65);
  --glass-border: rgba(108, 142, 255, 0.18);
  --contrast-color: #ffffff;
  --grid-color: rgba(108, 142, 255, 0.05);
}

:root {
  --nav-color: #7a8aaa;
  --nav-hover-color: #eef2ff;
  --nav-mobile-background-color: #080d1c;
  --nav-dropdown-background-color: #080d1c;
  --nav-dropdown-color: #7a8aaa;
  --nav-dropdown-hover-color: #ffffff;
}

.light-background {
  --background-color: #080d1c;
  --surface-color: rgba(255, 255, 255, 0.04);
}

.dark-background {
  --background-color: #050912;
  --default-color: #c8d3e8;
  --heading-color: #eef2ff;
  --surface-color: rgba(255, 255, 255, 0.05);
  --contrast-color: #ffffff;
}

:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Base & Global
--------------------------------------------------------------*/
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-size: 15px;
  line-height: 1.7;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(108, 142, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(167, 139, 250, 0.09) 0%, transparent 55%);
  background-attachment: fixed;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.25s;
}

a:hover {
  color: #94aeff;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
}

/*--------------------------------------------------------------
# Sidebar Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 20px;
  width: 300px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 997;
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.4;
}

.header .profile-img img {
  margin: 24px auto 16px;
  display: block;
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 0 6px rgba(108, 142, 255, 0.08), 0 0 40px rgba(108, 142, 255, 0.15);
  transition: box-shadow 0.4s;
}

.header .profile-img img:hover {
  box-shadow: 0 0 0 8px rgba(108, 142, 255, 0.15), 0 0 60px rgba(108, 142, 255, 0.25);
}

.header .logo {
  line-height: 1;
  margin-bottom: 16px;
  text-align: center;
}

.header .logo h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  color: var(--heading-color);
  letter-spacing: 0.01em;
}

.header .social-links {
  margin: 0 0 24px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.header .social-links a {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  color: var(--nav-color);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  transition: all 0.25s;
}

.header .social-links a:hover {
  color: var(--accent-color);
  background: rgba(108, 142, 255, 0.1);
  border-color: rgba(108, 142, 255, 0.35);
  transform: translateY(-2px);
}

@media (min-width: 1200px) {
  .header ~ main,
  .header ~ #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.header .header-toggle:hover {
  background: #94aeff;
  transform: scale(1.05);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 11px 14px;
  font-family: var(--nav-font);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.2s;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 2px;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 17px;
  margin-right: 10px;
  opacity: 0.7;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--heading-color);
  background: var(--surface-hover);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon {
  color: var(--accent-color);
  opacity: 1;
}

.navmenu .active {
  color: var(--heading-color);
  background: rgba(108, 142, 255, 0.1);
  border: 1px solid rgba(108, 142, 255, 0.2);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--nav-color);
  background-color: transparent;
  border-top: 1px solid var(--surface-border);
  font-size: 13px;
  padding: 28px 0;
  text-align: center;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  border: 2px solid rgba(108, 142, 255, 0.2);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Scroll Top
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: -15px;
  z-index: 99999;
  background: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: all 0.4s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.scroll-top i {
  font-size: 20px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: #94aeff;
  transform: translateY(-3px);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 20px;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 80px 0;
  overflow: clip;
}

.section-title {
  padding-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 16px;
  position: relative;
  color: var(--heading-color);
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  left: 0;
  bottom: 0;
  border-radius: 2px;
}

.section-title p {
  margin-bottom: 0;
  color: var(--nav-color);
  font-size: 15px;
  line-height: 1.8;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
/*--------------------------------------------------------------
  NIBAKA HERO SECTION — 3D UPGRADE
  In your main.css, find the block that starts with:
      .hero { ... }
  and REPLACE everything up to (and including) the
  @media (max-width: 768px) hero block with the code below.
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* left-align like the sidebar layout */
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Particle canvas fills the full hero */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* Dark radial overlay so text stays readable */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%,
      rgba(5, 9, 18, 0.30) 0%,
      rgba(5, 9, 18, 0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Glowing atmospheric orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-orb--blue {
  width: 600px;
  height: 600px;
  background: rgba(108, 142, 255, 0.10);
  filter: blur(100px);
  top: -200px;
  left: -200px;
  animation: heroOrbBlue 14s ease-in-out infinite alternate;
}

.hero-orb--purple {
  width: 500px;
  height: 500px;
  background: rgba(167, 139, 250, 0.09);
  filter: blur(90px);
  bottom: -150px;
  right: -150px;
  animation: heroOrbPurple 18s ease-in-out infinite alternate;
}

@keyframes heroOrbBlue {
  from { transform: translate(0, 0); }
  to   { transform: translate(80px, 60px); }
}

@keyframes heroOrbPurple {
  from { transform: translate(0, 0); }
  to   { transform: translate(-60px, -50px); }
}

/* Subtle perspective grid */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(108, 142, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 142, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

/* Content block */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 20px;
}

/* Eyebrow label */
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin: 0 0 20px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.2s forwards;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-color));
}

/* 3D extruded name */
.hero-name {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;

  /* 3D stacked text-shadow for depth illusion */
  text-shadow:
    0 1px 0 rgba(200, 211, 232, 0.8),
    0 2px 0 rgba(160, 176, 204, 0.7),
    0 3px 0 rgba(120, 136, 170, 0.6),
    0 4px 0 rgba(80,  96,  136, 0.5),
    0 5px 0 rgba(48,  64,  102, 0.4),
    0 6px 0 rgba(24,  32,  68,  0.3),
    0 12px 30px rgba(108, 142, 255, 0.50),
    0 24px 60px rgba(108, 142, 255, 0.22);

  /* Perspective tilt for 3D feel */
  transform: perspective(700px) rotateX(7deg);
  transform-origin: center bottom;
  transform-style: preserve-3d;

  opacity: 0;
  animation:
    heroFadeUp 0.9s ease 0.4s forwards,
    heroFloat  5s ease-in-out 1.4s infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: perspective(700px) rotateX(7deg) translateY(0px);   }
  50%       { transform: perspective(700px) rotateX(7deg) translateY(-10px); }
}

/* Typed subtitle line */
.hero-typed-line {
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 300;
  color: rgba(200, 211, 232, 0.65);
  margin: 0 0 36px;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.65s forwards;
}

.hero-typed-line .typed {
  color: var(--accent-color);
  font-weight: 500;
}

/* CTA buttons row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.9s ease 0.85s forwards;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.hero-btn--primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 8px 32px rgba(108, 142, 255, 0.35);
}

.hero-btn--primary:hover {
  background: #94aeff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(108, 142, 255, 0.50);
}

.hero-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(200, 211, 232, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-btn--ghost:hover {
  background: rgba(108, 142, 255, 0.12);
  color: var(--accent-color);
  border-color: rgba(108, 142, 255, 0.4);
  transform: translateY(-3px);
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0;
  animation: heroFadeUp 1s ease 2s forwards;
  pointer-events: none;
}

.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(200, 211, 232, 0.30);
}

.hero-scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(108, 142, 255, 0.35);
  border-radius: 11px;
  position: relative;
}

.hero-scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--accent-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: heroScrollWheel 1.9s ease infinite;
}

@keyframes heroScrollWheel {
  0%   { opacity: 1; top: 6px;  }
  100% { opacity: 0; top: 22px; }
}

/* Shared fade-up animation */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Override the old hero img rule — no longer needed */
.hero img { display: none; }
.hero:before { display: none; }

@media (max-width: 768px) {
  .hero {
    justify-content: center;
    text-align: center;
    padding: 120px 0 100px;
  }

  .hero-name {
    font-size: clamp(32px, 10vw, 52px);
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-eyebrow::before {
    display: none;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-orb--blue {
    width: 350px;
    height: 350px;
  }

  .hero-orb--purple {
    width: 280px;
    height: 280px;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 600;
  font-size: 22px;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--nav-color);
}

.about .content ul strong {
  color: var(--default-color);
  margin-right: 8px;
  font-weight: 500;
}

.about .content ul i {
  font-size: 14px;
  margin-right: 8px;
  color: var(--accent-color);
  line-height: 0;
}

.about .content p.py-3 {
  color: var(--nav-color);
  font-size: 14.5px;
  line-height: 1.8;
  border-left: 2px solid var(--glass-border);
  padding-left: 16px;
  margin-top: 16px;
}

.about img {
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 60px rgba(108, 142, 255, 0.1);
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .stats-item {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 28px 24px;
  width: 100%;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stats .stats-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.stats .stats-item:hover {
  border-color: var(--glass-border);
  background: var(--surface-hover);
  transform: translateY(-4px);
}

.stats .stats-item:hover::before {
  opacity: 1;
}

.stats .stats-item i {
  color: var(--accent-color);
  display: block;
  font-size: 36px;
  float: left;
  line-height: 0;
  opacity: 0.9;
}

.stats .stats-item .purecounter {
  color: var(--heading-color);
  font-size: 44px;
  line-height: 40px;
  font-weight: 700;
  margin-left: 56px;
  font-family: var(--heading-font);
  background: linear-gradient(135deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats .stats-item p {
  color: var(--nav-color);
  padding: 14px 0 0 0;
  margin: 0 0 0 56px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 64px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--default-color);
  padding: 0;
  margin: 0 0 10px 0;
  display: block;
  font-weight: 500;
  font-family: var(--heading-font);
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
  color: var(--accent-color);
  font-weight: 600;
  font-family: var(--mono-font);
  font-size: 12px;
}

.skills .progress-bar-wrap {
  background: rgba(255, 255, 255, 0.06);
  height: 4px;
  border-radius: 4px;
}

.skills .progress-bar {
  width: 1px;
  height: 4px;
  transition: 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  border-radius: 4px;
  box-shadow: 0 0 12px var(--accent-glow);
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 22px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 20px;
  font-family: var(--heading-font);
  letter-spacing: -0.01em;
}

.resume .resume-item {
  padding: 0 0 24px 24px;
  margin-top: -2px;
  border-left: 1px solid var(--glass-border);
  position: relative;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: -5.5px;
  top: 4px;
  background: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow);
}

.resume .resume-item h4 {
  line-height: 1.3;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 4px;
  font-family: var(--heading-font);
  letter-spacing: -0.01em;
  text-transform: none;
}

.resume .resume-item h5 {
  font-size: 12px;
  display: inline-block;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--accent-color);
  font-family: var(--mono-font);
  background: rgba(108, 142, 255, 0.1);
  border: 1px solid rgba(108, 142, 255, 0.2);
  padding: 3px 10px;
  border-radius: 6px;
}

.resume .resume-item ul {
  padding-left: 16px;
  color: var(--nav-color);
  font-size: 13.5px;
}

.resume .resume-item ul li {
  padding-bottom: 6px;
  line-height: 1.6;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio {
  padding: 80px 0;
  background-color: var(--background-color);
}

.portfolio .portfolio-filters {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.portfolio .portfolio-filters li {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 8px;
  transition: all 0.25s;
  border: 1px solid var(--surface-border);
  color: var(--nav-color);
  background: var(--surface-color);
}

.portfolio .portfolio-filters li:hover {
  color: var(--accent-color);
  border-color: rgba(108, 142, 255, 0.35);
  background: rgba(108, 142, 255, 0.08);
}

.portfolio .portfolio-filters li.filter-active {
  background: rgba(108, 142, 255, 0.15);
  color: var(--accent-color);
  border-color: rgba(108, 142, 255, 0.4);
  box-shadow: 0 0 20px rgba(108, 142, 255, 0.1);
}

.portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(108, 142, 255, 0.25);
  background: var(--surface-color);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  margin-bottom: 8px;
}

.portfolio .isotope-container {
  gap: 24px 0;
}

.portfolio .col-lg-4,
.portfolio .col-md-6 {
  padding-left: 14px;
  padding-right: 14px;
}

.portfolio .portfolio-item:hover {
  border-color: rgba(108, 142, 255, 0.55);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(108, 142, 255, 0.12);
}

.portfolio .portfolio-content img {
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(108, 142, 255, 0.15);
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.06);
}

.portfolio .portfolio-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 9, 18, 0.95) 0%,
    rgba(5, 9, 18, 0.6) 50%,
    rgba(5, 9, 18, 0.15) 100%
  );
  backdrop-filter: blur(2px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  transition: opacity 0.35s ease;
  border-radius: 16px;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-info h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--heading-font);
  letter-spacing: -0.01em;
  background: none;
  padding: 0;
  border-radius: 0;
}

.portfolio .portfolio-info p {
  color: rgba(200, 211, 232, 0.7);
  font-size: 12.5px;
  margin-bottom: 12px;
  text-align: left;
  font-family: var(--mono-font);
}

.portfolio .portfolio-info .preview-link,
.portfolio .portfolio-info .details-link {
  color: var(--nav-color);
  font-size: 17px;
  margin-right: 10px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.portfolio .portfolio-info .details-link {
  font-size: 18px;
}

.portfolio .portfolio-info .preview-link:hover,
.portfolio .portfolio-info .details-link:hover {
  color: var(--accent-color);
  background: rgba(108, 142, 255, 0.15);
  border-color: rgba(108, 142, 255, 0.35);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .section-title {
  text-align: left;
  margin-bottom: 30px;
}

.contact .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  padding: 36px 40px;
  border-radius: 20px;
  transition: all 0.3s;
}

.contact .social-links:hover {
  border-color: var(--glass-border);
  box-shadow: 0 0 60px rgba(108, 142, 255, 0.07);
}

.contact .social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  background: rgba(108, 142, 255, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(108, 142, 255, 0.2);
  border-radius: 14px;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.contact .social-links a:hover {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 40px var(--accent-glow);
}

@media (max-width: 575px) {
  .contact .social-links {
    gap: 16px;
    padding: 24px;
    flex-wrap: wrap;
  }
  .contact .social-links a {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  padding: 50px 30px;
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background-color: var(--nav-color);
  opacity: 0.5;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  opacity: 1;
  width: 20px;
  border-radius: 3px;
}

.portfolio-details .portfolio-info {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  padding: 32px 28px;
  border-radius: 16px;
}

.portfolio-details .portfolio-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--surface-border);
  color: var(--heading-color);
  font-family: var(--heading-font);
  letter-spacing: -0.01em;
  text-transform: none;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 13.5px;
  color: var(--nav-color);
}

.portfolio-details .portfolio-info ul li {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}

.portfolio-details .portfolio-info ul li strong {
  color: var(--accent-color);
  font-weight: 500;
}

.portfolio-details .portfolio-info ul li a {
  color: var(--accent-color);
}

.portfolio-details .portfolio-description {
  padding-top: 28px;
  color: var(--nav-color);
  font-size: 14.5px;
  line-height: 1.8;
  border-top: 1px solid var(--surface-border);
  margin-top: 24px;
}

@media (max-width: 991px) {
  .portfolio-details .portfolio-info { margin-top: 30px; }
}

/*--------------------------------------------------------------
# Responsive Utility
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
  .section-title h2 {
    font-size: 28px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 24px 0;
  position: relative;
  border-bottom: 1px solid var(--surface-border);
}

.page-title h1 {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--heading-font);
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--nav-color);
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: rgba(200, 211, 232, 0.3);
}

/*--------------------------------------------------------------
# PHP Email Form
--------------------------------------------------------------*/
.php-email-form .error-message {
  display: none;
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b7a;
  text-align: left;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 14px;
}

.php-email-form .sent-message {
  display: none;
  color: #5de8a0;
  background: rgba(93, 232, 160, 0.1);
  border: 1px solid rgba(93, 232, 160, 0.25);
  text-align: center;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 14px;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin: 0 10px -5px 0;
  border: 2px solid rgba(108, 142, 255, 0.2);
  border-top-color: var(--accent-color);
  animation: spin 0.9s linear infinite;
}

/*--------------------------------------------------------------
# AI Projects Section
--------------------------------------------------------------*/
.ai-projects {
  background-color: var(--background-color);
}

.ai-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(108, 142, 255, 0.18);
  border-radius: 20px;
  padding: 28px 28px 24px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6c8eff, #a78bfa);
  opacity: 0;
  transition: opacity 0.35s;
}

.ai-card:hover {
  border-color: rgba(108, 142, 255, 0.4);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(108, 142, 255, 0.08);
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-card--accent {
  border-color: rgba(167, 139, 250, 0.22);
}

.ai-card--accent:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(167, 139, 250, 0.1);
}

.ai-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ai-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(108, 142, 255, 0.1);
  border: 1px solid rgba(108, 142, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.ai-card--accent .ai-icon {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.25);
  color: #a78bfa;
}

.ai-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ai-tag {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(108, 142, 255, 0.08);
  border: 1px solid rgba(108, 142, 255, 0.2);
  color: var(--accent-color);
}

.ai-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.ai-card p {
  font-size: 13.5px;
  color: var(--nav-color);
  line-height: 1.75;
  margin-bottom: 20px;
}

.ai-card-footer {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.ai-metric {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--nav-color);
}

.ai-metric i {
  color: var(--accent-color);
  font-size: 13px;
}

.ai-sentiment-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.sentiment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 7px;
}

.sentiment.pos {
  background: rgba(93, 232, 160, 0.1);
  border: 1px solid rgba(93, 232, 160, 0.2);
  color: #5de8a0;
}

.sentiment.neu {
  background: rgba(108, 142, 255, 0.08);
  border: 1px solid rgba(108, 142, 255, 0.2);
  color: var(--accent-color);
}

.sentiment.neg {
  background: rgba(255, 107, 122, 0.08);
  border: 1px solid rgba(255, 107, 122, 0.2);
  color: #ff6b7a;
}

.ai-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: #ff6b7a;
  background: rgba(255, 107, 122, 0.08);
  border: 1px solid rgba(255, 107, 122, 0.2);
  padding: 4px 12px;
  border-radius: 7px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6b7a;
  display: inline-block;
  animation: pulse-live 1.4s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.ai-pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-color);
  background: rgba(108, 142, 255, 0.08);
  border: 1px solid rgba(108, 142, 255, 0.2);
  padding: 5px 14px;
  border-radius: 7px;
  transition: all 0.25s;
  text-decoration: none;
}

.ai-pub-link:hover {
  background: rgba(108, 142, 255, 0.18);
  border-color: rgba(108, 142, 255, 0.45);
  color: #94aeff;
  transform: translateX(2px);
}




/*--------------------------------------------------------------
  BONUS — 3D Tilt Cards
  Add these CSS rules at the END of your main.css
  Then add the JS snippet below to the bottom of index.html
  (just before </body>)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 3D Tilt — AI Project Cards
--------------------------------------------------------------*/
.ai-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.08s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* Extra inner glow layer that appears on tilt */
.ai-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(108, 142, 255, 0.10) 0%,
    transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.ai-card:hover::after {
  opacity: 1;
}

/* Make card inner content sit above the glow layer */
.ai-card > * {
  position: relative;
  z-index: 1;
}

/*--------------------------------------------------------------
# 3D Tilt — Portfolio Items
--------------------------------------------------------------*/
.portfolio-item {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.08s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(108, 142, 255, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.portfolio-item:hover::after {
  opacity: 1;
}

.portfolio-item > * {
  position: relative;
  z-index: 1;
}