/* =========================
   Preloader
========================= */
#preloader {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-color: #0a192f;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  text-align: center;
  opacity: 1; /* start fully visible */
  transition: opacity 0.8s ease; /* smooth fade */
}

.preloader-content img {
  width: 180px;
  position: fixed;        /* fixes it relative to viewport */
  top: 50%;               /* start roughly in the center vertically */
  left: 50%;              /* start roughly in the center horizontally */
  transform: translate(-50%, -50%) scale(1); /* center it exactly */
  animation: moveToCorner 3.5s forwards;
   animation-delay: 2s; /* waits 1 second before starting */
  margin-bottom: 15px;
}

.preloader-content h1 {
   
  color: var(--text-primary);
  font-size: 24px;
  transform: translateY(80px); /* moves it 20px downward */
  margin: 0;
  font-family: Arial, sans-serif;
}

.preloader-content p {
    
  color: #ff7f50;
  font-size: 14px;
transform: translateY(85px); /* moves it 20px downward */
  margin: 5px 0 15px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading-line {
  width: 150px; 
  height: 4px;
  transform: translateY(80px); /* moves it 20px downward */
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  margin: 0 auto;
}

.loading-line::before {
  content: "";
  position: absolute;
  left: -50%;
  width: 50%; 
  height: 100%;
  background-color: #ff7f50;
  animation: loading 1.5s linear infinite;
}
@keyframes loading {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* Animations */
@keyframes moveToCorner {
  0% {
    transform: translate(-50%, -50%) scale(1); /* start centered */
  }
  100% {
    transform: translate(-100vw, -100vh) scale(0.3); /* move to top-left corner */
  }
}
*{
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

/* ============ Dark/Light Mode Variables ============ */
:root {
    /* Dark Mode Colors (Default) */
    --bg-primary: #0a192f;
    --bg-secondary: #0f213f;
    --bg-card: #111827;
    --text-primary: #fff;
    --text-secondary: #ababab;
    --text-tertiary: #ccc;
    --accent-orange: #fd9042;
    --accent-blue: #1d5fa3;
    --border-color: #262626;
    --shadow: rgba(0, 0, 0, 0.5);
    --overlay: rgba(0, 0, 0, 0.6);
}

body.light-mode {
    /* Light Mode Colors */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #0a192f;
    --text-secondary: #555555;
    --text-tertiary: #333333;
    --accent-orange: #fd9042;
    --accent-blue: #1d5fa3;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --overlay: rgba(0, 0, 0, 0.3);
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* height of your fixed nav */
}
section {
  padding: 60px 20px;  /* top/bottom, left/right */
}
body{
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Body text - Modern SaaS style */
p {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0;
    color: var(--text-secondary);
}

/* Ensure text-primary color for specific sections */
body p {
    color: var(--text-secondary);
}

body.light-mode p {
    color: #4a5568;
}
#header {
    padding-top: 30px; /* adjust to nav height */
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center;
}

.container{
    padding: 0px 8%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 1px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    cursor: pointer;
    font-size: 26px;
    color: var(--accent-orange);
    margin-left: 20px;
    padding: 8px 12px;
    background: rgba(253, 144, 66, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: togglePulse 2s ease-in-out infinite;
}

@keyframes togglePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(253, 144, 66, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(253, 144, 66, 0);
    }
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(253, 144, 66, 0.2);
    color: var(--accent-blue);
    animation: none; /* Stop pulsing on hover */
}

.theme-toggle i {
    pointer-events: none;
}


.logo{
    width: 100px;
}
/* Logo zoom effect on hover */
#navbar-logo {
  transition: transform 0.3s ease; /* smooth zoom */
  cursor: pointer;
}

#navbar-logo:hover {
  transform: scale(1.1); /* zooms 10% on hover */
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    position: relative; /* important */
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #fd9042;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s; /* smooth animation */
}

nav ul li a:hover::after {
    width: 100%;
}
.intro-section {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  /* Background image */
  background: url('background.png') no-repeat center center/cover;
  height: 100vh;
  width: 100%;
  padding: 0 1%;
  overflow: hidden;
  background-attachment: fixed;
  background-position: center -80px;
}

/* Overlay to blend into navy background (dark mode default) */
.intro-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    var(--bg-primary) 0%,
    rgba(10, 25, 47, 0.4) 20%,
    rgba(10, 25, 47, 0.2) 70%,
    var(--bg-primary) 100%
  );
  z-index: 0;
}

/* keep text + image above overlay */
.intro-content, .intro-image {
  position: relative;
  z-index: 1;
}

.intro-content {
  flex: 1;
  margin-top: 100px;
  padding-left: 2%;  /* Shift content slightly left */
}

/* ========================================
   HERO SECTION - UFT STYLE
======================================== */

/* Small overline text */
.overline {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 20px;
  display: block;
}

/* Main hero heading - Professional & Balanced */
.intro-content .hero-title {
  font-size: clamp(42px, 6vw, 68px);  /* Balanced professional size */
  font-weight: 700;                    /* Bold (reduced from 800) */
  line-height: 1.1;                    /* Slightly more breathing room */
  letter-spacing: -0.01em;             /* Subtle negative tracking */
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 550px;                    /* Optimized for 3-line layout */
}

/* Subtitle/description */
.intro-content .hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

/* Hero buttons container */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Old h2, h3 styles - kept for backwards compatibility */
.cursor {
  animation: blink 1s infinite;
}
.intro-image {
  flex: 1;
  min-width: 280px;
  text-align: right;
  margin-top: 100px;
}
.intro-image img{
    max-width: 70%;
    margin: 0 auto;
  
    animation: floatImage 4s ease-in-out infinite;
    
}
@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}
/* Hero buttons - UFT style */
.intro-content .btn-primary {
  background: var(--accent-orange);
  color: #ffffff;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.intro-content .btn-primary:hover {
  background: #ff8150;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.intro-content .btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid var(--text-primary);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.intro-content .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Add arrow icons to buttons */
.intro-content .btn-primary::after,
.intro-content .btn-secondary::after {
  content: "→";
  font-size: 18px;
  transition: transform 0.3s ease;
}

.intro-content .btn-primary:hover::after,
.intro-content .btn-secondary:hover::after {
  transform: translateX(4px);
}

.typed-cursor {
  color: orange;
  text-shadow: 0 0 5px rgba(255, 165, 0, 0.6);
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.6; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}


.first-name {
  color: #1d5fa3; 
}

.last-name {
  color: #fd9042;
}

/*-------------about-----------*/
#about{
    color: var(--text-secondary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    box-sizing: border-box;
}
.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    max-width: 350px;    /* increased from 250px to 350px */
  height: auto;        /* keeps aspect ratio */
  border-radius: 10px; /* optional: soft corners */
  display: block;
  margin: 40px auto 0;      /* added 40px top margin to move down */
}
/* about picture zoom effect on hover */
.about-col-1 img {
  transition: transform 0.3s ease; /* smooth zoom */
  cursor: pointer;
}

.about-col-1 img:hover {
  transform: scale(1.1); /* zooms 10% on hover */
}
.about-col-2{
    flex-basis: 60%;
}

.sub-title{
   font-size: 52px;
   font-weight: 700;
   line-height: 1.2;
   letter-spacing: -0.01em;
   color: var(--text-primary);
   text-align: center;
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #f5781f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}
.tab-contents ul li span{
    color: #e37d08;
    font-size: 14px;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}
/* ---------- Modal ---------- */
.modal.hidden { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  max-width: 1200px;
  width: 96%;
  margin: 2vh auto;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: 90vh;
  max-height: 90vh;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.modal:not(.hidden) .modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 28px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

/* Left panel — column: main image on top, thumb strip at bottom */
.modal__left {
  flex: 0 0 60%;
  background: #111;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px 0 0 18px;
}

/* Main image area — fills remaining height */
.modal__img-wrap {
  flex: 1 1 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.modal__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Zoom icon — appears on hover over the image wrap */
.modal__zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 2px solid rgba(255,255,255,0.45);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 5;
}
.modal__img-wrap:hover .modal__zoom-btn {
  opacity: 1;
}
.modal__zoom-btn:hover {
  background: rgba(253,144,66,0.85);
  border-color: #fd9042;
}

/* Thumbnail strip */
.modal__thumbs {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.5);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: #fd9042 transparent;
}
.modal__thumbs:empty {
  display: none;
}
.modal__thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  object-position: center top;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
}
.modal__thumb:hover {
  opacity: 1;
  border-color: #fd9042;
  transform: scale(1.06);
}

/* ---------- Image Lightbox ---------- */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.img-lightbox.hidden {
  display: none;
}
.img-lightbox__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(5px);
}
.img-lightbox__close {
  position: fixed;
  top: 16px;
  right: 22px;
  font-size: 40px;
  line-height: 1;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  z-index: 2001;
}
.img-lightbox__img {
  position: relative;
  z-index: 2001;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

/* Right panel — scrollable content */
.modal__right {
  flex: 0 0 40%;
  padding: 32px 28px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Category badge */
.modal__category {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fd9042;
  background: rgba(253,144,66,0.12);
  border: 1px solid rgba(253,144,66,0.35);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 14px;
}

.modal__title {
  margin: 0 0 20px;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  padding-right: 30px; /* room for close button */
}

/* Shared section block spacing */
.modal__section-block {
  margin-bottom: 22px;
}

/* Unified section heading style */
.modal__section-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #fd9042;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(253,144,66,0.2);
}

/* Key Features list */
.modal__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__features li {
  padding-left: 18px;
  position: relative;
  color: #c8c8c8;
  line-height: 1.5;
  font-size: 0.87rem;
}

.modal__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: #fd9042;
  border-radius: 50%;
}

/* Description */
.modal__desc {
  line-height: 1.75;
  color: #c0c0c0;
  margin: 0 0 22px;
  font-size: 0.88rem;
}

/* Technologies — pill badges */
.modal__tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.modal__tech-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #e0e0e0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.3px;
}

/* Project Impact list */
.modal__impact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.modal__impact li {
  padding-left: 22px;
  position: relative;
  color: #c8c8c8;
  line-height: 1.5;
  font-size: 0.87rem;
}

.modal__impact li::before {
  content: '↑';
  position: absolute;
  left: 0;
  top: 0;
  color: #fd9042;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

/* Light mode overrides for new elements */
body.light-mode .modal__tech-pill {
  color: var(--text-primary);
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
}

body.light-mode .modal__features li,
body.light-mode .modal__impact li {
  color: var(--text-secondary);
}

/* Motion-safe */
@media (prefers-reduced-motion: reduce) {
  .modal__dialog { transition: none; }
}

/* Stack vertically on small screens */
@media (max-width: 640px) {
  .modal__dialog {
    flex-direction: column;
    margin: 2vh auto;
    height: 96vh;
    max-height: 96vh;
    border-radius: 14px;
  }
  .modal__left {
    flex: 0 0 45%;
    border-radius: 14px 14px 0 0;
  }
  .modal__img {
    height: 100%;
    object-fit: contain;
  }
  .modal__right {
    flex: 1 1 auto;
    padding: 20px 16px 16px;
  }
  .modal__extra img {
    width: 100%;
    margin: 6px 0;
  }
}

/* ---------------- Services -------------------- */
#services {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  box-sizing: border-box;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

body.light-mode #services {
  background-color: #e2e2e2;
  color: #0a192f;
}

#services .sub-title {
  margin-bottom: 40px;
  color: var(--text-primary);
}

/* Container grid */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

/* Service card */
.services-list div {
  background-color: var(--bg-card);
  padding: 26px;
  border-radius: 12px;
  border: 1px solid rgba(253, 144, 66, 0.14);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

/* Hover effect */
.services-list div:hover {
  transform: translateY(-6px);
  border-color: rgba(253, 144, 66, 0.38);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Icon */
.services-list div i {
  background-color: rgba(253, 144, 66, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 20px;
  color: var(--accent-orange);
}

/* Title */
.services-list div h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Description text */
.services-list div p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 14px;
  line-height: 1.6;
}

/* Bullet list */
.services-list div ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.services-list div ul li {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 5px;
  padding-left: 14px;
  position: relative;
}
.services-list div ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  opacity: 0.7;
}

/* Light mode adjustments */
body.light-mode .services-list div {
  background-color: var(--bg-card);
  border-color: rgba(253, 144, 66, 0.18);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
body.light-mode .services-list div:hover {
  border-color: rgba(253, 144, 66, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
body.light-mode .services-list div h2 {
  color: var(--text-primary);
}

/* ----------------Tools Marquee-------------------- */
#tools {
  padding: 80px 0 60px;
  background: var(--bg-primary);
  overflow: hidden;
}
#tools .sub-title {
  text-align: center;
  margin-bottom: 40px;
}
#tools .overline {
  text-align: center;
}

.marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Fade edges */
.marquee-row {
  position: relative;
  overflow: hidden;
}
.marquee-row::before,
.marquee-row::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-row::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}
.marquee-row::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

/* Track — holds items side-by-side */
.marquee-track {
  display: flex;
  width: max-content;
  gap: 24px;
}

/* Animations */
.marquee-ltr .marquee-track {
  animation: marquee-ltr 35s linear infinite;
}
.marquee-rtl .marquee-track {
  animation: marquee-rtl 35s linear infinite;
}

@keyframes marquee-ltr {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Pause on hover */
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

/* Individual item card */
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(253, 144, 66, 0.12);
  border-radius: 12px;
  padding: 14px 22px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.marquee-item:hover {
  border-color: rgba(253, 144, 66, 0.4);
  box-shadow: 0 0 20px rgba(253, 144, 66, 0.1);
  transform: scale(1.08);
}

.marquee-item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.marquee-item img[alt="SMS8.io"] {
  width: 130px;
  height: auto;
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
}
.marquee-item img[alt="Anthropic"],
.marquee-item img[alt="Google Flow"] {
  background: #fff;
  padding: 4px;
  border-radius: 6px;
}
.marquee-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Light mode */
body.light-mode #tools {
  background: var(--bg-secondary);
}
body.light-mode .marquee-row::before {
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}
body.light-mode .marquee-row::after {
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}
body.light-mode .marquee-item {
  background: var(--bg-card);
  border-color: rgba(253, 144, 66, 0.15);
}

/* Mobile */
@media (max-width: 600px) {
  .marquee-row::before,
  .marquee-row::after { width: 50px; }
  .marquee-item { padding: 10px 16px; }
  .marquee-item img { width: 42px; height: 42px; }
  .marquee-item span { font-size: 12px; }
  .marquee-ltr .marquee-track,
  .marquee-rtl .marquee-track { animation-duration: 25s; }
}

/* ----------------Filter Buttons-------------------- */
.portfolio-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 800px;
  margin: 10px auto 20px;
  line-height: 1.6;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0 40px;
}

.filter-btn {
  padding: 12px 30px;
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-secondary);
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.filter-btn:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #0a192f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 144, 66, 0.3);
}

.filter-btn.active {
  background-color: var(--accent-orange);
  color: #0a192f;
  border-color: var(--accent-orange);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(253, 144, 66, 0.4);
}

/* ----------------portfolio-------------------- */
#portfolio{
    padding: 30px 0;
}
.work-list{
     display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
}
.work.hidden {
  display: none;
}
.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img{
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
.layer{
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), #fd9042);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 600;
    margin-bottom: 0;
}
.layer p{
    display: none;
}
.layer a{
    margin-top: 20px;
    color: #fd9042;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: #ffffff;
    padding: 9px 24px;
    border-radius: 25px;
    text-align: center;
    line-height: normal;
    width: auto;
    height: auto;
    border: 2px solid #ffffff;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.layer a:hover{
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.work:hover img{
    transform: scale(1.1);
}
.work:hover .layer,
.work:focus-within .layer{
    height: 100%;
}
/* Keyboard focus: reveal the See More link and give it a visible ring */
.work .layer a:focus-visible{
    outline: 3px solid #0a192f;
    outline-offset: 2px;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #fd9042;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.5s;
    text-align: center;
}
.btn:hover{
    background: #fd9042;

}

/* Portfolio buttons container - outside .container for true centering */
.portfolio-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 60px auto;
    width: 100%;
    text-align: center;
    padding: 0 20px;
}

#toggle-projects {
    display: inline-block;
    text-align: center;
    width: auto;
    margin: 0;
    padding: 14px 50px;
}

.btn-discuss {
    background: #fd9042;
    color: #0a192f;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 14px 50px;
}

.btn-discuss:hover {
    background: #ff9f5a;
    transform: translateY(-2px);
}

/* Button inside project details (modal) */
.btn-discuss-project {
    display: inline-block;
    background: #fd9042;
    color: #0a192f;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-discuss-project:hover {
    background: #ff9f5a;
    transform: translateY(-2px);
}


/* ----------------contact-------------------- */
#contact {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 80px;
  box-sizing: border-box;
}
#contact .container {
  flex: 1;
  padding-bottom: 60px;
}

.contact-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.contact-left {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-right {
  flex: 1;
}

/* Lead paragraph */
.contact-lead {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Let's Connect block */
.contact-connect {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}
.contact-connect h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.contact-connect p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
}

/* Email & OnlineJobs links */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}
.contact-link-item i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(253, 144, 66, 0.1);
  border: 1px solid rgba(253, 144, 66, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--accent-orange);
  flex-shrink: 0;
}
.contact-link-item:hover { color: var(--accent-orange); }

/* Book a Call header */
.book-call-header {
  margin-bottom: 16px;
}
.book-call-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.book-call-header p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Calendly widget styling */
.contact-right .calendly-inline-widget {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
}
.social-icons{
    margin-top: 30px;
}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #1d5fa3;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-icons a:hover{
    color: #fd9042;
    transform: translateY(-5px);
}
.btn.btn2{
    display: inline-block;
    background: #fd9042;
}
.contact-right form{
    width: 100%;
}
form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: var(--border-color);
    padding: 15px;
    margin: 15px 0;
    color: var(--text-primary);
    font-size: 18px;
    border-radius: 6px;
}
form .btn2{
    padding: 14px 60px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-top: 20px;
    cursor: pointer;
}
.copyright {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    background: transparent;
}
.scroll-animate {
  opacity: 0;
  transform: translateX(-50px); /* start off to the left */
  transition: all 1s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateX(0);
}

/*----------------backtotop--button-----*/
#backToTop {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 999;
  background-color: #4681f4;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
  animation: bounce 2s infinite;
}


#backToTop:hover {
  background-color: #e67e22;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ----------------css for small screens-------------------- */
/* Hide mobile menu icons on desktop */
nav .fa-bars,
nav .fa-xmark {
    display: none;
}

/* Keep theme toggle visible on desktop */
.theme-toggle {
    display: flex !important;
}

@media only screen and (max-width: 600px){
  
  .container{
    padding: 0px 8%;
} 
  .intro-section{
        
        font-size: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-left: 0;
        padding-right: 0;
        padding-top: 60px;   /* optional: keep some top spacing */
        padding-bottom: 40px; /* optional: keep bottom spacing */
    }
    .intro-content, .intro-image {
       padding-left: 10px;  /* optional extra spacing */
        padding-right: 10px;   
      width: 100%;          /* let them take full width */
        max-width: 400px;     /* optional: limit width */
    }

    .intro-image img{
        width: 80%;            /* shrink image on small screens */
    }
    .intro-section h3{ 
    margin-top: 0;
        margin-bottom: 15px; /* keep bottom spacing */
    }
    .intro-section h2{
        margin-top: 0;
        margin-bottom: 15px; /* keep bottom spacing */
    }
    .intro-section h1{
        font-size: 30px;
        display: block;
         margin-top: 0;
        margin-bottom: 15px; /* keep bottom spacing */
    }
     .intro-section h1 .auto-input {
        display: block;   /* âœ… forces typing to drop under "I'm a" */
        margin-top: 5px;  /* optional spacing */
    }
    @media (max-width: 600px) {
    .intro-section a {
        
        margin: 10px auto;    /* center each button horizontally */
    }

    .intro-section .btn {
        margin-left: 0;        /* remove desktop-specific margin */
    }
}
@media (max-width: 600px) {
  .intro-content {
    text-align: center;
    margin-top: 60px;
  }

  /* Hero title responsive */
  .intro-content .hero-title {
    font-size: clamp(32px, 9vw, 42px);
  }

  /* Hero subtitle responsive */
  .intro-content .hero-subtitle {
    font-size: 16px;
    max-width: 100%;
  }

  /* Hero buttons mobile */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .intro-content .btn-primary,
  .intro-content .btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 14px 28px;
  }
}


    .intro-image {
    text-align: center;
  }
  
  
    /* Show mobile menu icons */
    nav .fa-bars,
    nav .fa-xmark {
        display: block;
        font-size: 25px;
    }
    
    /* Theme toggle on mobile - exclude from display block */
    .theme-toggle {
        display: flex !important;
        position: fixed;
        top: 15px;
        right: 60px;
        font-size: 20px;
        z-index: 1000;
        padding: 6px 10px;
    }
    
    /* Hamburger menu icon */
    nav > .fa-bars {
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 1000;
    }
    
    nav {
        margin-bottom: 5px;
    }
    nav ul{
        background: #fd9042;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    .sub-title{
        font-size: 40px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.01em;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;   
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-1 img {
        width: 100%;
        max-width: 280px;  /* increased from 200px */
        margin: 30px auto 0;  /* added top margin */
        display: block;
    }
    .about-col-2{
        font-size: 14px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 40px;
    }
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .contact-left, .contact-right {
        flex: 0 0 100%;
        width: 100%;
    }

    /* Calendly mobile adjustments */
    .contact-right .calendly-inline-widget {
        height: 600px !important;
        min-width: 100% !important;
    }
    
    .copyright{
        font-size: 14px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%; /* stack columns */
    }
    
    @media only screen and (max-width: 600px) {
  .intro-section h3 {
    font-size: 18px; /* or try 16px for tighter layout */
    line-height: 1.4;
    margin-bottom: 15px;
  }
}
}
@media (max-width: 600px) {
    .intro-section {
        background-size: contain;       /* scales whole image to fit */
        background-position: top center; /* keep top visible */
        background-repeat: no-repeat;    /* avoid tiling */
        height: auto;                    /* let section adjust to content */
    background-position: center 80px;
    }
}

/* --- MOBILE ONLY (max-width: 768px) --- */
@media (max-width: 768px) {
  .work::after {
    content: "👆";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }


  /* Fade out on hover/tap */
.work:hover::after,
.work:active::after {
  opacity: 0;
}
}

@media (max-width: 1200px) {
  /* Tablet + mobile styles */
  .intro-section {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    /* Stacked hero content can be taller than the viewport, so let the
       section grow instead of clipping the headline and CTA buttons. */
    height: auto;
    min-height: 100vh;
    overflow: visible;
    /* background-attachment: fixed is broken/janky on iOS Safari */
    background-attachment: scroll;
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .intro-image {
    text-align: center;
    margin-top: 0;
  }

  .intro-image img {
    width: 50vw;
  }
  .intro-content {
    order: 2;
  }

}
@media (max-width: 992px) {
    .services-list{
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
    .work-list{
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .services-list{
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .work-list{
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Portfolio buttons mobile */
    .portfolio-buttons {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    #toggle-projects,
    .btn-discuss {
        width: 100%;
        max-width: 280px;
        padding: 12px 30px;
        font-size: 16px;
    }
}

#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
}
/* ============ Light Mode Specific Overrides ============ */
body.light-mode {
    color: var(--text-primary);
}

body.light-mode #services {
    background-color: #e8e8e8;
}

body.light-mode .services-list div {
    background-color: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 4px 10px var(--shadow);
}

body.light-mode .services-list div h2 {
    color: var(--accent-orange);
}

body.light-mode .services-list div p {
    color: var(--text-secondary);
}

body.light-mode .filter-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
    box-shadow: none;
}

body.light-mode .filter-btn:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(253, 144, 66, 0.3);
}

body.light-mode .filter-btn.active {
    background-color: var(--accent-orange);
    color: #ffffff;
    border-color: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(253, 144, 66, 0.4);
}

body.light-mode .modal__dialog {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 10px 40px var(--shadow);
}

body.light-mode .modal__left {
    background: #e8e8e8;
}

body.light-mode .modal__title {
    color: var(--text-primary);
}

body.light-mode .modal__features-heading {
    color: var(--text-primary);
}

body.light-mode .modal__features li {
    color: var(--text-secondary);
}

body.light-mode .modal__desc,
body.light-mode .modal__extra p {
    color: var(--text-secondary);
}

body.light-mode nav ul {
    background: #ffffff;
}

body.light-mode nav ul li a {
    color: var(--text-primary);
}

body.light-mode nav ul .fa-solid {
    color: var(--text-primary);
}

body.light-mode .work {
    box-shadow: 0 4px 10px var(--shadow);
}

body.light-mode .copyright {
    border-top-color: var(--border-color);
    color: var(--text-secondary);
}

body.light-mode form input,
body.light-mode form textarea {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

body.light-mode .btn {
    color: var(--text-primary);
    border-color: var(--accent-orange);
}

body.light-mode .btn:hover {
    background: var(--accent-orange);
    color: var(--bg-card);
}

body.light-mode .btn2,
body.light-mode .btn-discuss {
    background: var(--accent-orange);
    color: var(--bg-primary);
}

/* Hero buttons light mode */
body.light-mode .intro-content .btn-primary {
    background: var(--accent-orange);
    color: #ffffff;
}

body.light-mode .intro-content .btn-primary:hover {
    background: #ff8150;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

body.light-mode .intro-content .btn-secondary {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

body.light-mode .intro-content .btn-secondary:hover {
    background: rgba(10, 25, 47, 0.1);
}

body.light-mode #backToTop {
    background-color: var(--accent-blue);
    color: var(--text-primary);
}

body.light-mode .layer {
    background: linear-gradient(var(--overlay), var(--accent-orange));
}

/* ===== Hero section: replace dark navy overlay with a light one ===== */
body.light-mode .intro-section::before {
    background: linear-gradient(
        to right,
        rgba(245, 245, 245, 0.92) 0%,
        rgba(245, 245, 245, 0.60) 30%,
        rgba(245, 245, 245, 0.25) 70%,
        rgba(245, 245, 245, 0.92) 100%
    );
}

/* Hero overline in light mode */
body.light-mode .intro-content .overline {
    color: var(--accent-orange);
}

/* ===== Section backgrounds: alternating in light mode ===== */
body.light-mode #about {
    background-color: #ffffff;
}

body.light-mode #portfolio {
    background-color: #f0f0f0;
}

body.light-mode #contact {
    background-color: #ffffff;
}

/* ===== About section text ===== */
body.light-mode #about p {
    color: var(--text-secondary);
}

/* ===== Contact section text ===== */
body.light-mode #contact p {
    color: var(--text-secondary);
}

/* ===== Portfolio description text ===== */
body.light-mode .portfolio-desc {
    color: var(--text-secondary);
}

/* ======== Chatbot Widget ======== */
#chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  font-family: 'DM Sans', sans-serif;
}
/* Keep the chatbot from covering the project modal while it is open */
body.modal-open #chatbot { display: none; }

/* Bubble button */
#chatbot-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fd9042;
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(253,144,66,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
#chatbot-bubble:hover {
  background: #ff8150;
  transform: scale(1.08);
}

/* Chat window */
#chatbot-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#chatbot-window.chatbot-hidden {
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  pointer-events: none;
}

/* Header */
.chatbot-header {
  background: #fd9042;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  object-fit: cover;
  background: #fff;
  padding: 2px;
}
.chatbot-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  margin: 0;
}
.chatbot-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  margin: 2px 0 0;
}
.chatbot-status-dot { color: #4ade80; }
.chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 0;
  line-height: 1;
}
.chatbot-close:hover { opacity: 1; }
.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chatbot-restart {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.3s ease;
  padding: 0;
  line-height: 1;
}
.chatbot-restart:hover {
  opacity: 1;
  transform: rotate(180deg);
}

/* Messages area */
.chatbot-messages {
  padding: 16px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #fd9042 transparent;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #fd9042; border-radius: 2px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }

/* Bot message bubble */
.chat-msg-bot {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 4px 12px 12px 12px;
  padding: 10px 13px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 85%;
  align-self: flex-start;
  border: 1px solid var(--border-color);
}

/* User message bubble */
.chat-msg-user {
  background: #fd9042;
  color: #fff;
  border-radius: 12px 4px 12px 12px;
  padding: 10px 13px;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 85%;
  align-self: flex-end;
}

/* Choice buttons row */
.chat-choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-self: stretch;
}
.chat-choice-btn {
  background: transparent;
  border: 1px solid #fd9042;
  color: #fd9042;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.chat-choice-btn:hover {
  background: #fd9042;
  color: #fff;
}
.chat-choice-btn:disabled {
  opacity: 0.45;
  cursor: default;
  border-color: var(--border-color);
  color: var(--text-secondary);
  background: transparent;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 10px 13px;
  background: var(--bg-secondary);
  border-radius: 4px 12px 12px 12px;
  border: 1px solid var(--border-color);
  align-self: flex-start;
  width: 52px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: typing-dot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Mobile */
@media (max-width: 480px) {
  #chatbot { bottom: 16px; right: 16px; }
  #chatbot-window { width: 290px; }
}

/* Light mode overrides */
body.light-mode .chat-msg-bot {
  background: #f0f0f0;
  color: var(--text-primary);
  border-color: #ddd;
}
body.light-mode #chatbot-window {
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
/* ---------- Modal video player (AI Video projects) ---------- */
.modal__video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.modal--video .modal__video { display: block; }
.modal--video .modal__img { display: none; }
.modal--video .modal__zoom-btn { display: none; }
.modal--video .modal__img-wrap { cursor: default; }
.modal__thumb--active {
  opacity: 1;
  border-color: #fd9042;
}

/* Zoom is now an explicit action via the magnifier button only.
   The image wrap itself no longer zooms on click, so switching thumbnails never zooms. */
.modal__img-wrap { cursor: default; }
.modal__zoom-btn { cursor: zoom-in; }
@media (hover: none) {
  /* Touch devices have no hover to reveal the magnifier, so keep it visible */
  .modal__zoom-btn { opacity: 0.85; }
}

/* ---------- Accessibility: keyboard focus + reduced motion ---------- */
/* Visible focus ring for keyboard users (mouse clicks stay clean via :focus-visible) */
.filter-btn:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
nav ul li a:focus-visible,
.contact-link-item:focus-visible,
.social-icons a:focus-visible,
.theme-toggle:focus-visible,
nav .fa-bars:focus-visible,
#sidemenu .fa-xmark:focus-visible,
.modal__close:focus-visible,
.modal__thumb:focus-visible {
  outline: 3px solid var(--accent-orange, #fd9042);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-animate { opacity: 1 !important; transform: none !important; }
}
