:root {
  --primary: #0d6efd;
  --primary-dark: #0a2463;
  --accent: #f6b73c;
  --ink: #172033;
  --muted: #5d667a;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --border: #dfe5ef;
  --shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
  --content-width: 1100px;
  --page-gutter: 5%;
}

/* Reset */

*,

*::before,

*::after {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



body {

  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  line-height: 1.6;

  color: var(--ink);

  background-color: var(--surface);

  min-height: 100vh;

  display: flex;

  flex-direction: column;
  overflow-x: hidden;

}

html {

  scroll-behavior: smooth;
  overflow-x: hidden;

}



/* Container */

.container {

  width: min(90%, var(--content-width));

  margin: 0 auto;

}



/* Navbar */

.navbar {

  background: rgba(10, 36, 99, 0.96);

  color: white;

  position: sticky;

  top: 0;

  z-index: 999;
  box-shadow: 0 6px 20px rgba(10, 36, 99, 0.12);
  animation: slideDown 0.7s ease both;

}



.navbar-container {

  width: min(90%, var(--content-width));

  max-width: none;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0.75rem 0;
  gap: 1rem;

}



.brand {

  color: white;

  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  max-width: 100%;
  position: relative;
  isolation: isolate;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;

}

.brand::before {

  content: "";

  position: absolute;

  inset: -40% auto -40% -35%;

  width: 38%;

  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);

  transform: skewX(-18deg);

  animation: brandShine 4.8s ease-in-out infinite;

  z-index: -1;

}

.brand:hover,
.brand:focus-visible {

  transform: translateY(-2px);

  border-color: rgba(255, 255, 255, 0.35);

  background: rgba(255, 255, 255, 0.1);

  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);

}

.brand-logo {

  width: 76px;

  max-height: 60px;

  height: auto;

  object-fit: contain;

  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
  transform-origin: center;
  animation: logoPulse 4.2s ease-in-out infinite;
  transition: transform 0.28s ease, filter 0.28s ease;

}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {

  transform: scale(1.06) rotate(-2deg);

  filter: drop-shadow(0 8px 16px rgba(255, 255, 255, 0.22));

}

.brand span {

  position: static;

  width: auto;

  height: auto;

  overflow: visible;

  clip: auto;

  color: #fff;

  font-size: 1.08rem;

  font-weight: 900;

  letter-spacing: 0.12em;

  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(90deg, #fff, #dbeafe, #fff);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandTextGlow 5s ease-in-out infinite;

}



/* Nav Links */

.nav-links {

  list-style: none;

  display: flex;

  gap: 1rem;

  align-items: center;

}



.nav-links li a,

.nav-links li button.theme-toggle-btn {

  color: white;

  text-decoration: none;

  font-weight: 600;

  cursor: pointer;

  background: none;

  border: none;

  font-size: 1rem;

  transition: color 0.3s ease;

}



.nav-links li a:hover,

.nav-links li button.theme-toggle-btn:hover {

  color: #ffd600;

}

.nav-links li a.active {

  color: var(--accent);

}



/* Hamburger */

.hamburger {

  display: none;

  flex-direction: column;

  gap: 5px;

  background: none;

  border: none;

  cursor: pointer;

  padding: 0;

}



.hamburger .bar {

  width: 25px;

  height: 3px;

  background: white;

  border-radius: 2px;

}



.hero {

  background:
    radial-gradient(circle at 18% 22%, rgba(246, 183, 60, 0.28), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(13, 110, 253, 0.34), transparent 32%),
    linear-gradient(135deg, #07193f 0%, #0a2463 47%, #102b55 100%);

  color: #fff;

  padding: 110px 0 70px;

  text-align: center;

  position: relative;

  overflow: hidden;

}

.hero::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(246, 183, 60, 0.1)),
    linear-gradient(180deg, rgba(7, 25, 63, 0.1), rgba(7, 25, 63, 0.52));

  opacity: 0.9;

  animation: heroSheen 12s ease-in-out infinite alternate;

  z-index: 1;

}

.hero-shader-bg {

  position: absolute;

  inset: 0;

  z-index: 0;

  width: 100%;

  height: 100%;

  display: block;

  pointer-events: none;

  opacity: 0.9;

}

.hero > *:not(.hero-shader-bg) {

  position: relative;

  z-index: 2;

}



/* Carousel Wrapper */

.carousel-wrapper {

  width: 100%;

  overflow: hidden;

  position: relative;

}



/* Track = 8 slides total, each 100vw */

.carousel-track {

  display: flex;

  width: 800vw;

  animation: scroll-left 40s linear infinite;

}



/* Each slide = 100vw */

.carousel-slide {

  flex: 0 0 100vw;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  padding: 40px 20px;

  box-sizing: border-box;

}



.carousel-slide h1 {

  font-size: clamp(2.25rem, 6vw, 4.75rem);

  margin: 0 0 10px;
  line-height: 1.05;
  animation: fadeUp 0.9s ease both;

}



.carousel-slide p {

  font-size: clamp(1rem, 2.4vw, 1.3rem);

  font-weight: 300;

  margin: 0;
  animation: fadeUp 0.9s ease 0.12s both;

}



/* Scroll animation */

@keyframes scroll-left {

  0% {

    transform: translateX(0);

  }

  100% {

    transform: translateX(-400vw); /* scroll 4 slides width (duplicated 4 later) */

  }

}



/* Buttons */

.hero-buttons {

  margin-top: 40px;

  display: flex;

  justify-content: center;

  gap: 20px;
  animation: fadeUp 0.9s ease 0.22s both;

}

.hero-buttons .btn {

  padding: 12px 28px;

  background-color: var(--accent);

  color: #13213f;

  font-weight: bold;

  border-radius: 8px;

  text-decoration: none;

  transition: background-color 0.3s ease;
  box-shadow: 0 10px 24px rgba(10, 36, 99, 0.2);

}



.hero-buttons .btn:hover,

.hero-buttons .btn:focus {

  background-color: #ffd37a;
  transform: translateY(-2px);

}









/* Section general */

.section {

  padding: 4rem 0;

}

.section-heading {

  max-width: 720px;

  margin: 0 auto 2rem;

  text-align: center;

}

.section-heading h2,
.split-section h2 {

  font-size: clamp(1.8rem, 4vw, 3rem);

  line-height: 1.1;

  color: var(--primary-dark);

}

.section-heading p:not(.eyebrow) {

  margin-top: 0.8rem;

  color: var(--muted);

}

.split-section {

  display: grid;

  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);

  gap: 2rem;

  align-items: center;

}

.split-section p {

  color: var(--muted);

  margin-top: 1rem;

}

.metrics-grid {

  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 1rem;

}

.section-actions,
.button-row {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 1rem;

  margin-top: 2rem;

  flex-wrap: wrap;

}

.button-row {

  justify-content: flex-start;

}

.text-link {

  color: var(--primary-dark);

  font-weight: 800;

  text-decoration: none;

}

.text-link:hover {

  color: var(--primary);

}

.btn-primary {

  display: inline-block;

  padding: 0.8rem 1.1rem;

  background: var(--primary-dark);

  color: white;

  border-radius: 8px;

  text-decoration: none;

  border: 0;

  cursor: pointer;

  font-weight: 800;

}



.bg-light {

  background-color: var(--soft);

}



.section-title {

  text-align: center;

  font-size: 2.2rem;

  margin-bottom: 2rem;

  color: var(--primary-dark);

}



/* About Section */

.about-container {

  display: flex;

  gap: 3rem;

  align-items: center;

  flex-wrap: wrap;

}



.about-image img {

  width: 300px;

  border-radius: 10px;

  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;

}

.about-image img:hover {

  transform: translateY(-6px) scale(1.02);

  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.14);

}



.about-content {

  flex: 1;

}

.about-role {

  display: flex;

  align-items: center;

  justify-content: center;

  width: fit-content;

  margin: -0.25rem auto 1rem;

  padding: 0.45rem 0.75rem;

  border-radius: 8px;

  background: var(--primary-dark);

  color: #fff;

  font-size: 0.95rem;

  font-weight: 800;

  letter-spacing: 0.04em;

  text-transform: uppercase;

}



.about-content h2 {

  margin-bottom: 1rem;

  color: var(--primary-dark);

}

.identity-line {

  text-align: center;

  color: var(--primary-dark);

  font-weight: 700;

}

.identity-line strong {

  color: var(--primary);

}



.about-content p {

  font-size: 1.1rem;

  margin-bottom: 2rem;

  line-height: 1.5;

}



/* Counters */

.counters {

  display: flex;

  gap: 3rem;

  flex-wrap: wrap;

}



.counter-box {

  flex: 1 1 120px;

  background: var(--primary-dark);

  color: white;

  padding: 1.5rem 1rem;

  border-radius: 8px;

  text-align: center;

  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;

}

.counter-box:hover {

  transform: translateY(-4px);

  background: var(--primary);

}



.counter-box h3 {

  font-size: 2.5rem;

  margin-bottom: 0.5rem;

}



/*portfolio section*/

#projects {

padding: 4rem var(--page-gutter);

background: var(--soft);

}

.home-hero {

  min-height: 72vh;

  display: flex;

  align-items: center;

}

.hero-content {

  max-width: 900px;

}

.home-hero h1 {

  max-width: 920px;

  margin: 0 auto;

  font-size: clamp(2.4rem, 7vw, 5.4rem);

  line-height: 1.03;

}

.hero-copy {

  max-width: 720px;

  margin: 1.2rem auto 0;

  font-size: 1.12rem;

  color: rgba(255, 255, 255, 0.88);

}

.eyebrow {

  color: var(--accent);

  font-size: 0.78rem;

  font-weight: 800;

  letter-spacing: 0.14em;

  margin-bottom: 0.75rem;

  text-transform: uppercase;

}

.btn-outline {

  background: transparent !important;

  color: #fff !important;

  border: 1px solid rgba(255, 255, 255, 0.65);

}

.page-hero {

  background:
    linear-gradient(135deg, rgba(10, 36, 99, 0.94), rgba(13, 110, 253, 0.78)),
    url("images/portfolio.png") center/cover;

  color: #fff;

  padding: 5.5rem 0 4rem;

}

.page-hero h1 {

  max-width: 850px;

  font-size: clamp(2rem, 5vw, 4rem);

  line-height: 1.08;

}

.page-hero p:not(.eyebrow) {

  max-width: 720px;

  margin-top: 1rem;

  color: rgba(255, 255, 255, 0.86);

  font-size: 1.08rem;

}



h2 {

text-align: center;

color: var(--primary-dark);

}



/* === FILTER BUTTONS === */

.filters {

text-align: center;

margin: 20px 0;

}



.filter-btn {

padding: 10px 20px;

margin: 5px;

border: none;

background-color: #ddd;

cursor: pointer;

border-radius: 8px;

transition: 0.3s ease;

font-weight: bold;

}



.filter-btn.active,

.filter-btn:hover {

background-color: var(--primary-dark);

color: white;

}



/* === PROJECT GRID === */

.projects-grid {

display: grid;

grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

gap: 1.5rem;

margin-top: 1rem;

max-width: 1100px;

margin-left: auto;

margin-right: auto;

}



.project-card {

background: white;

border-radius: 10px;

overflow: hidden;

box-shadow: var(--shadow);

transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid var(--border);
display: flex;
flex-direction: column;

}



.project-card:hover {

transform: translateY(-5px);
box-shadow: 0 18px 34px rgba(23, 32, 51, 0.14);

}



.project-card img {

width: 100%;

height: 160px;

object-fit: cover;

}

.project-visual,
.project-webview {

height: 160px;

display: grid;

place-items: center;

background: linear-gradient(135deg, #0a2463, #0d6efd 58%, #f6b73c);

color: white;

}

.project-webview {

position: relative;

overflow: hidden;

background: #eef3fb;

}

.project-webview iframe {

width: 435%;

height: 435%;

border: 0;

transform: scale(0.23);

transform-origin: top left;

pointer-events: none;

}

.project-webview::after {

content: "";

position: absolute;

inset: 0;

box-shadow: inset 0 0 0 1px rgba(10, 36, 99, 0.08);

}

.project-visual span {

font-size: 2.3rem;

font-weight: 800;

letter-spacing: 0;

}



.project-card h3 {

margin: 0 0 0.55rem;

font-size: 1rem;

color: var(--primary-dark);
line-height: 1.2;
min-height: 2.4em;
display: grid;
place-items: center;

}



.project-card p {

margin: 0 0 0.65rem;

font-size: 0.84rem;

color: var(--muted);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.45;
min-height: 2.9em;

}



.hide {

display: none !important;

}

.project-tags {

display: flex;

flex-wrap: wrap;

justify-content: center;

gap: 0.35rem;

margin: 0.35rem 0 0.75rem;
min-height: 0;
overflow: visible;

}

.project-tags span {

display: inline-flex;

align-items: center;

min-height: 24px;

padding: 0.28rem 0.46rem;

border-radius: 999px;

background: var(--soft);

border: 1px solid var(--border);

color: var(--primary-dark);

font-size: 0.68rem;

font-weight: 800;

}

.skills-preview-grid,
.value-grid,
.technology-layout {

display: grid;

grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

gap: 1.25rem;
align-items: stretch;

}

.skill-panel,
.value-card,
.technology-card,
.contact-panel {

background: var(--surface);

border: 1px solid var(--border);

border-radius: 8px;

box-shadow: var(--shadow);

padding: 1.35rem;
transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;

}

.skill-panel {

display: flex;

flex-direction: column;

height: 100%;

min-height: 330px;

}

.skill-panel:hover,
.value-card:hover,
.technology-card:hover,
.contact-panel:hover {

transform: translateY(-5px);

box-shadow: 0 18px 34px rgba(23, 32, 51, 0.14);
border-color: rgba(13, 110, 253, 0.22);

}

.skill-panel i,
.technology-icon {

width: 44px;

height: 44px;

display: inline-grid;

place-items: center;

border-radius: 8px;

background: var(--primary-dark);

color: #fff;

font-size: 1.35rem;

margin-bottom: 1rem;
transition: transform 0.28s ease, background-color 0.28s ease;
flex: 0 0 44px;

}

.skill-panel:hover i {

transform: translateY(-2px);

}

.skill-panel h3,
.value-card h3,
.technology-card h2,
.contact-panel h2 {

color: var(--primary-dark);

margin-bottom: 0.6rem;
line-height: 1.2;

}

.skill-panel h3 {

display: flex;

align-items: center;

}

.skill-panel p,
.value-card p,
.technology-card p,
.contact-panel p {

color: var(--muted);

}

.skill-panel p {

display: flex;

flex-wrap: wrap;

gap: 0.6rem;

margin-top: 1rem;

}

.skill-panel .chip-list {

margin-top: 1rem;

align-content: flex-start;

}

.chip-list span {

display: inline-flex;

align-items: center;
gap: 0.4rem;

min-height: 34px;

padding: 0.45rem 0.7rem;

border-radius: 8px;

background: var(--soft);

border: 1px solid var(--border);

color: var(--primary-dark);

font-weight: 700;

font-size: 0.9rem;
line-height: 1.15;

}

.tech-chip-list span i {

font-size: 1.12rem;

color: var(--primary);

}

.tech-chip-list span .bxl-html5 {

color: #e44d26;

}

.tech-chip-list span .bxl-css3 {

color: #1572b6;

}

.tech-chip-list span .bxl-javascript {

color: #c99a00;

}

.tech-chip-list span .bxl-python {

color: #3673a5;

}

.tech-chip-list span .bxl-react {

color: #149eca;

}

.tech-chip-list span .bxl-nodejs {

color: #3c873a;

}

.tech-chip-list span .bxl-git {

color: #f05032;

}

.tech-chip-list span .bxl-github {

color: #24292f;

}

.tech-chip-list span .bxl-figma {

color: #a259ff;

}

.projects-page {

padding-top: 3rem;

}

.contact-layout {

display: grid;

grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);

gap: 1.5rem;

align-items: start;

}

.contact-methods {

display: grid;

gap: 0.75rem;

margin-top: 1.2rem;

}

.contact-methods a {

display: inline-flex;

align-items: center;

gap: 0.55rem;

color: var(--primary-dark);

font-weight: 800;

text-decoration: none;

}





/* Services Section */

.services-container {

  text-align: center;

}



.services-list {

  display: flex;

  gap: 3rem;

  justify-content: center;

  flex-wrap: wrap;

}



.service-item {

  flex: 1 1 200px;

  background: var(--primary-dark);

  color: white;

  padding: 2rem 1rem;

  border-radius: 8px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  cursor: default;

  transition: background-color 0.3s ease, transform 0.3s ease;

}



.service-item:hover {

  background-color: var(--primary);
  transform: translateY(-5px);

}



.service-item i {

  font-size: 3rem;

  margin-bottom: 1rem;

  display: block;

}



/* Contact Section */

.contact-container {

  max-width: 1100px;

  margin: 0 auto;

}

.contact-info-panel h2 {

  text-align: left;

}

.contact-info-panel {

  position: relative;

  overflow: hidden;

}

.contact-info-panel::before,
.contact-form-panel::before {

  content: "";

  position: absolute;

  inset: 0 0 auto;

  height: 4px;

  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));

  transform: scaleX(0.2);

  transform-origin: left;

  transition: transform 0.35s ease;

}

.contact-info-panel:hover::before,
.contact-form-panel:hover::before {

  transform: scaleX(1);

}

.contact-info-panel .contact-methods > a {

  padding: 0.75rem 0;

  border-bottom: 1px solid var(--border);

  animation: contactFloatIn 0.6s ease both;

  transition: transform 0.28s ease, color 0.28s ease;

}

.contact-method {

  display: inline-flex;

  align-items: center;

  gap: 0.55rem;

  padding: 0.75rem 0;

  color: var(--primary-dark);

  font-weight: 800;

  border-bottom: 1px solid var(--border);

  animation: contactFloatIn 0.6s ease both;

}

.contact-methods > a:hover,
.contact-method:hover {

  transform: translateX(4px);

}

.contact-methods > :nth-child(2) {

  animation-delay: 0.08s;

}

.contact-methods > :nth-child(3) {

  animation-delay: 0.16s;

}

.contact-info-panel .contact-methods > :last-child {

  border-bottom: none;

}

.contact-info-panel .contact-methods i {

  width: 36px;

  height: 36px;

  display: inline-grid;

  place-items: center;

  flex: 0 0 36px;

  border-radius: 8px;

  background: var(--soft);

  color: var(--primary-dark);

  font-size: 1.05rem;

  transition: transform 0.28s ease, background-color 0.28s ease, color 0.28s ease;

}

.contact-method:hover i,
.contact-methods a:hover i {

  transform: translateY(-2px) scale(1.06);

  background: var(--primary-dark);

  color: #fff;

}

.contact-phone span {

  display: grid;

  gap: 0.3rem;

}

.contact-phone small {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

}

.contact-phone small a {

  min-height: auto;

  padding: 0.25rem 0.55rem !important;

  border: 1px solid var(--border) !important;

  border-radius: 999px;

  background: var(--soft);

  color: var(--primary-dark);

  font-size: 0.78rem;

  line-height: 1;

  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;

}

.contact-phone small a:hover {

  transform: translateY(-2px);

  background: var(--primary-dark);

  color: #fff;

}

.contact-form-panel {

  position: relative;

  overflow: hidden;

  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 8px;

  box-shadow: var(--shadow);

  padding: 1.35rem;

  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;

}

.contact-form-panel:hover {

  transform: translateY(-5px);

  box-shadow: 0 18px 34px rgba(23, 32, 51, 0.14);

  border-color: rgba(13, 110, 253, 0.22);

}

@keyframes contactFloatIn {

  from {

    opacity: 0;

    transform: translateY(10px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}



.contact-form {

  display: flex;

  flex-direction: column;

  gap: 1rem;

  margin-bottom: 2rem;

}



.contact-form input,

.contact-form textarea {

  padding: 0.8rem 1rem;

  font-size: 1rem;

  border: 2px solid var(--border);

  border-radius: 8px;

  resize: vertical;

}



.contact-form input:focus,

.contact-form textarea:focus {

  outline: none;

  border-color: var(--primary);

}



.contact-form button.btn-primary {

  background-color: var(--primary-dark);

  color: white;

  font-weight: 600;

  padding: 0.7rem;

  border: none;

  border-radius: 8px;

  cursor: pointer;

  transition: background-color 0.3s ease;

}



.contact-form button.btn-primary:hover {

  background-color: var(--primary);

}

.contact-form button.btn-primary:disabled {

  cursor: wait;

  opacity: 0.72;

}



.form-success-message {

  display: none;

  text-align: center;

  margin-top: 1rem;

  padding: 10px 15px;

  background-color: #e8f7ee;

  color: #25603b;

  border: 1px solid #bee8cd;

  border-radius: 5px;

  font-weight: bold;

  animation: messagePop 0.45s ease-in-out forwards;

}

.form-success-message.is-visible {

  display: block;

}

.form-success-message.is-error {

  background-color: #fdecec;

  color: #9b1c1c;

  border-color: #f5bcbc;

}

.form-success-message.is-success {

  background-color: #e8f7ee;

  color: #25603b;

  border-color: #bee8cd;

}



@keyframes fadeIn {

  0% {

    opacity: 0;

    transform: translateY(-10px);

  }

  100% {

    opacity: 1;

    transform: translateY(0);

  }

}



/* CHATBOT TOGGLE BUTTON */

#chatbot-toggle {

  position: fixed;

  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));

  right: calc(1.5rem + env(safe-area-inset-right, 0px));

  background: var(--primary-dark);

  color: #fff;

  border: none;

  border-radius: 50%;

  padding: 0.8rem;

  cursor: pointer;

  box-shadow: 0 0 10px rgba(0,0,0,0.1);

  z-index: 10050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 56px;
  min-height: 56px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

}

.chatbot-toggle-text {

  display: none;

  font-size: 0.78rem;

  font-weight: 800;

}



#chatbot-toggle:hover {

  background: #2563eb;

}



/* CHATBOT BOX */

.chatbot {

  position: fixed;

  bottom: calc(6rem + env(safe-area-inset-bottom, 0px));

  right: calc(1.5rem + env(safe-area-inset-right, 0px));

  width: 300px;

  max-height: 400px;

  background: #fff;

  border-radius: 8px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

  padding: 1rem;

  display: flex;

  flex-direction: column;

  gap: 0.5rem;

  z-index: 10040;

}



.chatbot.hidden {

  display: none;

}



.chat-log {

  flex: 1;

  overflow-y: auto;

  padding: 0.5rem;

  background: #f3f4f6;

  border-radius: 0.5rem;

  border: 1px solid #ddd;

  font-size: 0.9rem;

}



.chat-log p {

  margin-bottom: 0.5rem;

  word-wrap: break-word;

}



#chat-input {

  padding: 0.5rem;

  border: 1px solid #ccc;

  border-radius: 0.5rem;

  font-size: 1rem;

  outline: none;

}



 

/* === FOOTER === */

footer {

  background-color: #0a0a23;

  color: white;

  text-align: center;

  padding: 40px 20px;

}



footer .socials {

  margin: 20px 0;

  display: flex;

  justify-content: center;

  gap: 20px;

}



footer .socials a {

  color: white;

  font-size: 1.5rem;

  transition: color 0.3s;

}



footer .socials a:hover {

  color: #8888ff;

}



footer iframe {

  width: 100%;

  height: 300px;

  border: none;

  border-radius: 1rem;

  margin-top: 1rem;

}



/* Responsive */

@media (max-width: 768px) {

  .about-container {

    flex-direction: column;

    align-items: center;

  }



  .about-image img {

    width: 90%;

    max-width: 300px;

  }



  .services-list {

    flex-direction: column;

  }

  .skill-panel {

    min-height: auto;

  }

  .skill-panel h3,
  .skill-panel p {

    min-height: 0;

  }

  .split-section,
  .contact-layout {

    grid-template-columns: 1fr;

  }

  .metrics-grid {

    grid-template-columns: 1fr;

  }

  .home-hero {

    min-height: 64vh;

  }

  .hero-buttons {

    flex-direction: column;

    align-items: center;

  }



  .hamburger {

    display: flex;
    flex: 0 0 auto;

  }

  .navbar-container {

    width: min(94%, var(--content-width));

    min-height: 66px;

    padding: 0.55rem 0;

  }

  .brand {

    max-width: calc(100vw - 96px);

  }



  .nav-links {

    position: fixed;

    top: 66px;

    right: 0.5rem;

    background: var(--primary-dark);

    flex-direction: column;

    width: min(280px, calc(100vw - 1rem));

    height: calc(100dvh - 66px);
    max-height: calc(100vh - 66px);

    padding: 1rem;

    gap: 0.85rem;
    align-items: stretch;

    transform: translateX(100%);

    transition: transform 0.3s ease;

    z-index: 1000;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);

  }



  .nav-links.open {

    transform: translateX(0);

  }



  .nav-links li a,

  .nav-links li button.theme-toggle-btn {

    width: 100%;

    display: block;

    padding: 0.75rem 0.85rem;

    border-radius: 8px;

    font-size: 1rem;

  }

  .brand-logo {

    width: 58px;

    max-height: 50px;

  }

  .brand {

    gap: 0.6rem;

    padding: 0.3rem 0.6rem 0.3rem 0.35rem;

  }

  .brand span {

    font-size: 0.92rem;

    letter-spacing: 0.09em;
    max-width: 128px;

  }

  #chatbot-toggle {

    position: fixed !important;

    display: inline-flex !important;

    visibility: visible !important;

    opacity: 1 !important;

    right: calc(0.85rem + env(safe-area-inset-right, 0px)) !important;

    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px)) !important;

    min-width: 74px;

    min-height: 46px;

    border-radius: 999px;

    padding: 0.65rem 0.8rem;

    z-index: 10050 !important;

    transform: none !important;

    pointer-events: auto;

  }

  #chatbot-toggle i {

    font-size: 1.35rem !important;

  }

  .chatbot-toggle-text {

    display: inline;

  }

  .chatbot {

    position: fixed !important;

    right: calc(0.85rem + env(safe-area-inset-right, 0px)) !important;

    bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px)) !important;

    width: min(330px, calc(100vw - 1.7rem)) !important;

    max-height: 70vh;

    z-index: 10040 !important;

  }

}

@keyframes messagePop {

  0% {

    opacity: 0;

    transform: translateY(10px) scale(0.98);

  }

  100% {

    opacity: 1;

    transform: translateY(0) scale(1);

  }

}



@media (max-width: 400px) {

  .navbar-container {

    width: min(96%, var(--content-width));

  }

  .brand {

    max-width: calc(100vw - 82px);

    gap: 0.45rem;

    padding: 0.28rem 0.5rem 0.28rem 0.3rem;

  }

  .brand-logo {

    width: 48px;

    max-height: 42px;

  }

  .brand span {

    max-width: 82px;

    font-size: 0.78rem;

    letter-spacing: 0.06em;

  }

  .hamburger {

    width: 32px;

  }

  .carousel-slide h1 {

    font-size: 1.5rem;

  }



  .carousel-slide p {

    font-size: 1rem;

  }

}


.project-info {
    padding: 0.95rem;
    text-align: center;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.project-btn {
    display: inline-block;
    padding: 0.55rem 1rem;
    background-color: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: auto;
    transition: background 0.3s ease, transform 0.3s ease;
    font-weight: 700;
}

.project-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.map {
    filter: grayscale(100%) invert(90%) contrast(90%); /* Makes map match dark/modern themes */
    margin-bottom: 20px;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.project-card,
.service-item,
.counter-box,
.skill-panel {
    animation: softLift 0.65s ease both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brandShine {

  0%,
  55% {

    left: -40%;

  }

  100% {

    left: 130%;

  }

}

@keyframes logoPulse {

  0%,
  100% {

    transform: scale(1);

  }

  50% {

    transform: scale(1.035);

  }

}

@keyframes brandTextGlow {

  0%,
  100% {

    background-position: 0% 50%;

  }

  50% {

    background-position: 100% 50%;

  }

}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softLift {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSheen {
    from {
        opacity: 0.55;
        transform: translate3d(-3%, 0, 0);
    }
    to {
        opacity: 0.9;
        transform: translate3d(3%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
