body {
    color: #333;
}

.hero-section {
    text-align: center;
    padding: 80px 20px;
    background-image: url("assets/header.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1;
}

.hero-section .page-title {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #ddd;
    margin: 0 auto 8px;
    max-width: 880px;
    position: relative;
    z-index: 2;
}

.hero-cta-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-trust-points {
    margin: 20px auto 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-trust-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(11, 20, 40, 0.4);
    color: #eaf0ff;
    font-size: 14px;
}

.hero-trust-points i {
    color: #79baff;
}

.cta {
    text-decoration: none;
    background: linear-gradient(135deg, #007bff 0%, #0a63d5 100%);
    color: #fff;
    border: none;
    border-radius: var(--ui-radius-sm);
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .28s ease, filter .28s ease;
    display: inline-block;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.28);
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 123, 255, 0.38);
    filter: brightness(1.05);
}

.cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.28);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: none !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.service-overview {
    padding: 60px 20px;
    background-color: #e9ecef;
    text-align: center;
}

.service-overview h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.service-overview p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.services-grid > a {
    display: block;
    height: 100%;
    color: inherit;
}

.icon-container {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    background: rgba(0, 123, 255, 0.10);
    border: 1px solid rgba(0, 123, 255, 0.20);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.12);
    color: #007bff;
    font-size: 18px;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card {
    background: var(--ui-card-surface);
    padding: 22px;
    border-radius: var(--ui-radius-lg);
    border: 1px solid var(--ui-card-border);
    box-shadow: var(--ui-card-shadow);
    transition:
        transform .35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow .35s ease,
        border-color .35s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.0) 0%, rgba(0, 123, 255, 0.08) 100%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--ui-card-border-hover);
    box-shadow: var(--ui-card-shadow-hover);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover .icon-container i {
    transform: scale(1.08);
}

.service-card .icon-container i {
    display: inline-block;
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card h3 {
    font-size: 22px;
    color: #007bff;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.featured-products {
    padding: 70px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.featured-products h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 22px;
}

.carousel-shell {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

.carousel {
    display: flex;
    transition: transform .5s ease;
    will-change: transform;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.project-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--ui-card-border);
    overflow: hidden;
    background: var(--ui-card-surface);
    transform: translateZ(0);
}

.project-media {
    width: 100%;
    aspect-ratio: 16/10;
}

.browser-shot {
  width: 100%;
  height: 100%;
  border-radius: 0px;
  overflow: hidden;
  background: #151922;
  display: grid;
  grid-template-rows: 38px 1fr;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-title {
  margin-left: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-body {
    padding: 22px 22px 24px;
    text-align: left;
}

.project-body h3 {
    font-size: 22px;
    margin: 0 0 8px;
    color: #0b57d0;
}

.project-body p {
    margin: 0 0 16px;
    color: #555;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    background: #007bff;
    padding: 10px 16px;
    border-radius: 10px;
    transition: transform .2s ease, background-color .2s ease, box-shadow .3s ease;
}

.project-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: transform .2s ease, background-color .2s ease;
    z-index: 5;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, .55);
    transform: translateY(-50%) scale(1.06);
}

.carousel-btn.prev {
    left: 18px;
}

.carousel-btn.next {
    right: 18px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    transform: scale(1);
    transition: width .35s ease, background-color .35s ease, transform .35s ease;
}

.carousel-dots .dot.active {
    background: rgba(0, 0, 0, .65);
    width: 18px;
    transform: scale(1.15);
}

@keyframes dotPop {
    0% {
        transform: scale(.9);
    }
    60% {
        transform: scale(1.35);
    }
    100% {
        transform: scale(1.15);
    }
}

.carousel-dots .dot.active {
    animation: dotPop .35s ease;
}

.selling-points {
    padding: 60px 20px;
    background-color: #e9ecef;
    text-align: center;
}

.dropdown-item {
    margin: 0 auto 20px;
    max-width: 700px;
    border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-card-border);
    overflow: hidden;
    background: var(--ui-card-surface);
    box-shadow: var(--ui-card-shadow);
    transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}

.dropdown-item:hover {
    transform: translateY(-4px);
    border-color: var(--ui-card-border-hover);
    box-shadow: var(--ui-card-shadow-hover);
}

.faq-question {
    background-color: #f7f8fa;
    color: #333;
    padding: 20px;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    outline: none;
    position: relative;
    transition: background-color .3s ease;
}

.faq-question::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #007bff;
    transform: scaleY(0);
    transition: transform .3s ease;
}

.faq-question.active::before {
    transform: scaleY(1);
}

.faq-question:hover {
    background-color: #f0f1f3;
}

.faq-answer {
    background-color: #fff;
    padding: 20px;
    display: none;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.arrow {
    width: 0;
    height: 0;
    margin-left: 10px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
    transition: transform .3s ease;
}

.faq-question.active .arrow {
    transform: rotate(180deg);
}

.reviews {
    padding: clamp(64px, 8vw, 88px) 20px;
    background:
        radial-gradient(900px 280px at 12% 0%, rgba(0, 123, 255, 0.08), transparent 65%),
        radial-gradient(700px 220px at 100% 95%, rgba(0, 123, 255, 0.06), transparent 70%),
        #f8f9fa;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reviews h2 {
    font-size: clamp(30px, 3.2vw, 38px);
    line-height: 1.12;
    margin: 0 0 14px;
    color: #333;
    letter-spacing: -0.02em;
}

.average-rating {
    font-size: 18px;
    margin-bottom: 14px;
}

.score-text {
    font-size: 16px;
    color: #4f5c75;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 123, 255, 0.2);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.reviews .cta {
    display: inline-block;
    margin-top: 4px;
}

.individual-reviews {
    margin: 36px auto 0;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.review-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.review {
    background:
        radial-gradient(240px 150px at 100% 0, rgba(255, 190, 50, 0.1), transparent 70%),
        var(--ui-card-surface);
    padding: 24px 24px 22px;
    border: 1px solid var(--ui-card-border);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-card-shadow);
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.review::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #ffd861 0%, #ffbe32 100%);
}

.review::after {
    content: "";
    position: absolute;
    top: -110px;
    right: -110px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 190, 50, 0.18), transparent 65%);
    pointer-events: none;
}

.review-link:hover .review {
    transform: translateY(-6px);
    border-color: var(--ui-card-border-hover);
    box-shadow: var(--ui-card-shadow-hover);
}

.review-stars {
    color: #ffd700;
    font-size: 18px;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 190, 50, 0.3);
    position: relative;
    z-index: 1;
}

.review-text {
    font-size: 16px;
    font-weight: 500;
    color: #2f3a4d;
    margin: 0 0 14px;
    line-height: 1.74;
    position: relative;
    z-index: 1;
}

.review-author {
    font-style: italic;
    font-size: 15px;
    color: #485870;
    margin-top: auto;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.final-cta {
    padding: 56px 20px;
    background:
        radial-gradient(640px 220px at 20% 0, rgba(255, 255, 255, 0.14), transparent 70%),
        linear-gradient(145deg, #007bff, #0056b3);
    color: #fff;
    text-align: center;
}

.final-cta p {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 600;
}

.final-cta-row {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.final-cta a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 20px;
    background-color: #0056b3;
    border-radius: var(--ui-radius-sm);
    transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
    display: inline-block;
}

.final-cta a:hover {
    background-color: #003f7f;
    transform: translateY(-2px);
}

.final-cta-secondary {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.final-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.24) !important;
}

.cta,
.project-link,
.final-cta a {
    box-shadow: 0 6px 14px rgba(0, 123, 255, .35);
}

.cta:hover,
.project-link:hover,
.final-cta a:hover {
    box-shadow: 0 10px 22px rgba(0, 123, 255, .45);
}

@media (max-width: 600px) {
    .hero-subtitle {
        font-size: 17px;
    }

    .hero-trust-points {
        gap: 10px;
    }

    .hero-trust-points li {
        font-size: 13px;
    }

    .project-body {
        padding: 18px 16px 20px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .individual-reviews {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .review {
        padding: 22px 20px 20px;
    }

    .review-text {
        font-size: 15px;
        line-height: 1.66;
    }

    .final-cta p {
        font-size: 1rem;
    }

    .final-cta a {
        font-size: 16px;
        width: 100%;
        max-width: 320px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        color: #e4ecff;
    }

    .service-overview,
    .selling-points {
        background-color: rgb(37, 43, 59);
    }

    .featured-products,
    .reviews {
        background-color: #1d2438;
    }

    .service-card,
    .dropdown-item,
    .faq-answer {
        background: var(--ui-card-surface-dark);
        border: 1px solid var(--ui-card-dark-border);
        box-shadow: var(--ui-card-dark-shadow);
    }

    .service-card:hover{
        box-shadow: var(--ui-card-dark-shadow-hover);
    }

    .dropdown-item:hover {
        box-shadow: var(--ui-card-dark-shadow-hover);
    }

    .project-card {
        background: var(--ui-card-surface-dark);
        border-color: var(--ui-card-dark-border);
    }

    .service-overview h2,
    .featured-products h2,
    .reviews h2 {
        color: #edf3ff;
    }

    .service-overview > p,
    .service-card p,
    .faq-answer p,
    .final-cta p {
        color: #d3def6;
    }

    .faq-question {
        background-color: #333;
        border: none;
        color: #f0f0f0;
    }

    .faq-question:hover {
        background-color: #3a3a3a;
    }

    .faq-answer {
        background-color: #222;
        border-top: 1px solid #444;
    }

    .arrow {
        border-top-color: #f0f0f0;
    }

    .project-body p {
        color: #cfcfcf;
    }

    .project-body h3 {
        color: #7fb9ff !important;
    }

    .score-text {
        color: #dbe8ff;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(102, 170, 255, 0.45);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    }

    .review {
        background:
            radial-gradient(240px 150px at 100% 0, rgba(255, 190, 50, 0.14), transparent 70%),
            var(--ui-card-surface-dark);
        border: 1px solid var(--ui-card-dark-border);
        box-shadow: var(--ui-card-dark-shadow);
    }

    .review-link:hover .review {
        box-shadow: var(--ui-card-dark-shadow-hover);
    }

    .review-text {
        color: #e4edff !important;
    }

    .review-author {
        color: #c3d2ec !important;
    }

    .review-stars {
        background: rgba(255, 190, 50, 0.12);
        border-color: rgba(255, 190, 50, 0.35);
    }

    .service-card {
        border: 1px solid var(--ui-card-dark-border);
    }

    .service-card:hover {
        border-color: rgba(102, 170, 255, 0.3);
    }

    .service-card h3 {
        color: #7fb9ff !important;
    }

    .hero-trust-points li {
        background: rgba(6, 17, 37, 0.58);
        border-color: rgba(149, 197, 255, 0.34);
        color: #e5efff !important;
    }

    .carousel-dots .dot {
        background: rgba(255, 255, 255, .25);
    }

    .carousel-dots .dot.active {
        background: rgba(255, 255, 255, .65);
    }

    .icon-container {
        background: rgba(102, 170, 255, 0.12);
        border-color: rgba(102, 170, 255, 0.24);
        color: #7fb9ff;
    }
}
