/* start custom styles for gs header top */
    :root {
      --gs-orange: #f59e0b;
      --gs-green: #2e7d32;
      --gs-red: #e53935;
      --gs-teal: #00bcd4;
      --gs-dark: #0b1220;
      --gs-muted: #6c757d;
      --gs-light: #f8f9fa;
      --gs-gradient: linear-gradient(135deg, var(--gs-orange) 0%, var(--gs-green) 100%);
      --gs-gradient-1: linear-gradient(135deg, var(--gs-green) 0%, var(--gs-orange) 100%);
      --gs-gradient-2: linear-gradient(135deg, var(--gs-teal) 0%, var(--gs-red) 100%);
      --gs-gradient-3: linear-gradient(135deg, var(--gs-dark) 0%, var(--gs-teal) 50%, var(--gs-red) 100%);
      --gs-gradient-4: linear-gradient(135deg, var(--gs-dark) 0%, var(--gs-red) 100%);
      --gs-gradient-5: linear-gradient(135deg, var(--gs-dark) 10%, var(--gs-red) 40%, var(--gs-dark) 10%, var(--gs-teal) 100%);
    }

    html {
      scroll-behavior: smooth;
    }

    /* Navbar */
    .navbar {
      backdrop-filter: blur(10px);
      transition: box-shadow .2s ease;
    }

    .navbar.sticky {
      box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    }

    .navbar-brand img {
      height: 30px;
      transform: scale(1.3);
      transform-origin: left;
    }

    /* Hero */
    .hero {
      background: var(--gs-gradient);
      color: #fff;
      padding-top: 7rem;
      padding-bottom: 5rem;
    }

    .hero-figure {
      border-radius: 1rem;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    }

    /* Buttons */
    .btn-primary {
      background-color: var(--gs-orange);
      border-color: var(--gs-orange);
    }

    .btn-primary:hover {
      background-color: #d97706;
      border-color: #d97706;
    }

    .btn-success {
      background-color: var(--gs-green);
      border-color: var(--gs-green);
    }

    .btn-success:hover {
      background-color: #1b5e20;
      border-color: #1b5e20;
    }

    .btn-outline-primary {
      color: var(--gs-orange);
      border-color: var(--gs-orange);
    }

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

    /* Cards */
    .card {
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    }

    .soft-card {
      border: 1px solid rgba(0, 0, 0, .06);
      border-radius: 1rem;
    }

    /* Gradient text */
    .text-gradient {
      background: var(--gs-gradient-5);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    /* Section spacing */
    section {
      padding: 4rem 0;
    }

    .section-title {
      font-weight: 800;
      letter-spacing: -.02em;
    }

    body {
      font-family: 'Outfit', sans-serif;
      padding-top: 3rem;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-family: 'Outfit', sans-serif;
    }

    /* CTA strip */
    .cta {
      background: var(--gs-gradient);
      color: #fff;
    }

    .cta h4,
    .cta p {
      color: #fff;
    }

    /* Footer */
    footer {
      background: var(--gs-green);
      color: #eaf2eb;
    }

    footer a {
      color: #fff;
      text-decoration: none;
    }

    footer a:hover {
      text-decoration: underline;
    }

    footer input.form-control {
      border-radius: 2rem;
      padding-left: 1rem;
    }

    footer button {
      border-radius: 2rem;
      padding: 0 .9rem;
    }

    /* Responsive tweaks */
    @media (max-width: 575.98px) {
      .display-5 {
        font-size: 2rem;
      }

      .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
      }
    }

    .tech-item {
      padding: 1.4rem;
      font-size: 1.1rem;
      transition: all 0.3s ease;
    }

    .tech-icon {
      width: 36px;
      height: 36px;
      margin-bottom: 6px;
      display: block;
      margin-left: auto;
      margin-right: auto;
      filter: grayscale(100%);
      transition: filter 0.3s ease, transform 0.3s ease;
    }

    /* hover → color + slight grow */
    .tech-item:hover .tech-icon {
      filter: grayscale(0%);
      transform: scale(1.1);
    }

    .tech-item:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      border-color: #007bff;
    }

    .background {
      background: linear-gradient(335deg, var(--gs-light), var(--gs-green));
    }

    .service-pill {
      background: #1a1a1a;
      border: 1px solid #444;
      border-radius: 25px;
      padding: 6px 15px;
      font-size: 0.9rem;
      color: black;
      white-space: nowrap;
      transition: all 0.3s ease;
    }

    .service-pill:hover {
      background: transparent;
      color: darkblue;
      border-color: var(--gs-orange);
    }

    .service-pill {
      background: transparent;
    }

    /* Tabs */
    #demos .list-group-item {
      font-weight: 600;
      padding: 0.9rem 1.2rem;
      cursor: pointer;
    }

    #demos .list-group-item.active {
      background: linear-gradient(90deg, #ff9800, #e65100);
      border: none;
      color: #fff;
    }

    /* Demo panes */
    .demo-pane {
      display: none;
      opacity: 0;
      transform: translateY(15px);
      transition: all .35s ease;
    }

    .demo-pane.active {
      display: block;
      opacity: 1;
      transform: none;
    }

    /* Mockups */
    .mockup {
      border-radius: 12px;
      box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
      transition: transform .3s;
    }

    .mockup:hover {
      transform: scale(1.05);
    }

    .mockup.phone {
      height: 400px;
    }

    .mockup.desktop {
      height: 400px;
    }

    /* Quick compare grid */
    #demo-stage.compare .demo-pane {
      display: block;
      opacity: 1;
      transform: none;
      margin-bottom: 1.5rem;
    }

    /* style for select work */
    .btn-start-project {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 1050;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1.8rem;
      font-size: 1.1rem;
      font-weight: 600;
      color: #fff;
      border: none;
      border-radius: 50px;
      /* pill shape */
      background: linear-gradient(135deg, var(--gs-dark) 0%, var(--gs-red) 100%);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease-in-out;
    }

    .btn-start-project:hover {
      transform: scale(1.05);
      background: linear-gradient(335deg, var(--gs-dark) 0%, var(--gs-green) 100%);
      color: white;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
      .btn-start-project {
        bottom: 15px;
        right: 15px;
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 40px;
      }
    }

    @media (max-width: 480px) {
      .btn-start-project {
        bottom: calc(env(safe-area-inset-bottom, 10px));
        right: 10px;
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
      }
    }

    .work-card-glass {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      cursor: pointer;
    }

    .work-card-glass .work-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.3s ease;
      display: block;
    }

    .work-card-glass .work-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, 50%);
      /* initially below image */
      text-align: center;
      color: #fff;
      opacity: 0;
      padding: 1rem;
      transition: all 0.3s ease;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 12px;
    }

    .work-card-glass:hover .work-img {
      filter: blur(4px) brightness(0.7);
      transform: scale(1.05);
    }

    .work-card-glass:hover .work-content {
      top: 50%;
      transform: translate(-50%, -50%);
      opacity: 1;
    }

    .work-card-glass .tags span {
      display: inline-block;
      margin: 0 4px 4px 0;
      background: rgba(255, 255, 255, 0.2);
      padding: 2px 8px;
      border-radius: 6px;
      font-size: 0.8rem;
    }

    /* Make only the card title always visible below the image */
    .work-card-glass .work-content h5 {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      transform: none !important;
      opacity: 1 !important;
      color: #fff;
      margin-top: 0.5rem;
      text-align: center;
    }

    /* Keep tags inside hover overlay */
    .work-card-glass .tags {
      opacity: 0;
      transition: all 0.3s ease;
    }

    .work-card-glass:hover .tags {
      opacity: 1;
    }

    /* Mobile: show only 1 card per slide */
    @media (max-width: 576px) {
      .carousel-item .carousel-card {
        display: none;
      }

      .carousel-item .carousel-card:first-child {
        display: block;
      }
    }

    /* style for FAQ section */
    #faq .accordion-button {
      background-color: #fff;
      box-shadow: none !important;
    }

    #faq .accordion-item {
      border: 1px solid #e5e7eb;
    }

    #faq .accordion-button::after {
      filter: invert(0.5);
    }

    /* ============================
 Global Performance + Responsive Enhancements
============================ */

    /* Make all images, videos, and iframes responsive */
    img,
    video,
    iframe {
      max-width: 100%;
      height: auto;
      display: block;
    }

    /* Container fluidity */
    .container,
    .container-fluid {
      width: 100%;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
      padding-left: 1rem;
      padding-right: 1rem;
    }

    /* Text scaling: ensures readability across devices */
    html {
      font-size: 100%;
      /* base */
    }

    @media (max-width: 1200px) {
      html {
        font-size: 95%;
      }
    }

    @media (max-width: 992px) {
      html {
        font-size: 90%;
      }
    }

    @media (max-width: 768px) {
      html {
        font-size: 85%;
      }
    }

    @media (max-width: 576px) {
      html {
        font-size: 80%;
      }
    }

    /* Flex utilities for responsiveness */
    .responsive-flex {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .responsive-flex>* {
      flex: 1 1 250px;
    }

    /* Ensure buttons & inputs scale properly */
    button,
    input,
    select,
    textarea {
      max-width: 100%;
      font: inherit;
    }

    /* Responsive tables */
    table {
      width: 100%;
      border-collapse: collapse;
    }

    table th,
    table td {
      word-wrap: break-word;
      padding: 0.75rem;
    }

    .table-responsive {
      width: 100%;
      overflow-x: auto;
    }

    /* Smooth transitions for responsiveness */
    * {
      -webkit-tap-highlight-color: transparent;
      scroll-behavior: smooth;
      box-sizing: border-box;
    }

    /* Disable animations & transitions for users who prefer reduced motion */
    @media (prefers-reduced-motion: reduce) {
      * {
        transition: none !important;
        animation: none !important;
      }
    }

    /* style for social icons */
    .social-icon {
      width: 22px;
      height: 22px;
      display: inline-block;
      vertical-align: middle;
    }
    /* end css for gs header top */

    /* start success message */
     /* Overlay for blur background */
    .success-overlay {
      position: fixed;
      /* fixed to cover full viewport */
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      backdrop-filter: blur(5px);
      background: rgba(0, 0, 0, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
    }

    /* Success card */
    .success-card {
      background: #fff;
      padding: 2rem 2.5rem;
      border-radius: 1rem;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
      text-align: center;
      max-width: 400px;
      width: 90%;
      animation: fadeIn 0.4s ease-out;
    }

    .success-card h3 {
      margin-bottom: 1rem;
      color: #28a745;
    }

    .success-card p {
      margin-bottom: 1.5rem;
    }

    .success-card button {
      padding: 0.5rem 1.5rem;
      border: none;
      background-color: #28a745;
      color: #fff;
      border-radius: 0.5rem;
      cursor: pointer;
      font-weight: 500;
      transition: background-color 0.3s;
    }

    .success-card button:hover {
      background-color: #218838;
    }

    /* Fade-in animation */
    @keyframes fadeIn {
      0% {
        opacity: 0;
        transform: scale(0.8);
      }

      100% {
        opacity: 1;
        transform: scale(1);
      }
    }
    /* end success message */

    /* demo details */
    #lightbox-overlay {
    display: flex;
    transition: opacity 0.3s;
    cursor: pointer;
}

#lightbox-overlay img {
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

#lightbox-overlay img:hover {
    transform: scale(1.02);
}

/* css for comments */
.new-comment {
    background-color: #d4edda; /* light green */
    transition: background-color 2s ease, transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}
.new-comment.show {
    transform: translateY(0);
    opacity: 1;
}

/* css for project cards */
