.as-hero {
    min-height: 26vh;
    background: var(--background-color);
    display: flex;
    align-items: center;
    position: relative;
}

.as-hero-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    background: var(--secondary-color);
    margin-top: 20px;
}

.as-hero-subtitle {
    max-width: 680px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 40px;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.15s;
}

.as-hero-cta a {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.as-hero-cta a:hover {
    background: var(--text-dark);
    color: var(--background-color);
}

.as-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.as-hero-form {
    background: var(--background-color);
    padding: 40px;
    border: 1px solid #eee;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.as-hero-form h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.as-hero-form .form-group {
    margin-bottom: 20px;
}

.as-hero-form input,
.as-hero-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.as-hero-form input:focus,
.as-hero-form textarea:focus {
    border-color: var(--primary-color);
}

.as-hero-form button {
    width: 100%;
    padding: 14px;
    background: var(--text-dark);
    color: var(--background-color);
    border: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.as-hero-form button:hover {
    background: var(--primary-color);
}

.as-hero-content {
    position: relative;
    overflow: hidden;
}

.as-carousel-wrapper {
    position: relative;
    min-height: 400px;
}

.as-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.as-carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.as-carousel-slide.exiting {
    opacity: 0;
    transform: translateX(-100%);
}

@media (max-width: 900px) {
    .as-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .as-hero-inner {
        padding: 100px 16px;
    }

    .as-carousel-wrapper {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .as-hero {
        min-height: 80vh;
    }

    .as-hero-title {
        font-size: 40px;
    }

    .as-hero-subtitle {
        font-size: 16px;
    }

    .as-carousel-wrapper {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .as-carousel-wrapper {
        min-height: 380px;
    }
}

.as-about {
    padding: 50px 0;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.as-image-wrapper::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background-image: radial-gradient(var(--primary-color) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    opacity: 0.4;
    z-index: -1;
}

.as-about-image img,
.as-experience-image img {
    width: 100%;
    border-radius: 12px;
    /* box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1); */
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    display: block;
}

.as-about-image img:hover,
.as-experience-image img:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
}

.as-section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.as-section-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.as-outline-btn:hover {
    background: var(--text-dark);
    color: var(--background-color);
    transform: translateY(-2px);
}

.as-services {
    padding: 50px 0;
    background: var(--background-color);
}

.as-services-inner {
    max-width: 1200px;
    margin: auto;
    padding: 0 16px;
}

.as-services-head {
    max-width: 720px;
    margin-bottom: 72px;
}

.as-services-head p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}

.as-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.as-service-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.as-service-item i {
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.as-service-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-dark);
    line-height: 1.3;
}

.as-service-item:hover h4 {
    color: var(--primary-color);
}

.as-service-item:hover {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .as-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .as-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .as-services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.as-delivery {
    padding: 50px 0;
    background: #fdfdfd;
}

.as-flow-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    position: relative;
    margin-top: 60px;
}

.as-flow-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.as-flow-icon {
    width: 80px;
    height: 80px;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.as-flow-item:hover .as-flow-icon {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.as-flow-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}

.as-flow-item p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    padding: 0 10px;
}

.as-flow-grid::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--secondary-color), var(--secondary-color) 10px, transparent 10px, transparent 20px);
    z-index: 0;
}

@media (max-width: 1100px) {
    .as-flow-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        row-gap: 60px;
    }

    .as-flow-grid::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .as-flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .as-flow-grid {
        grid-template-columns: 1fr;
    }
}

.as-cta-strip {
    padding: 50px 0;
    background: var(--text-dark);
    color: var(--background-color);
    text-align: center;
}

.as-cta-inner {
    max-width: 800px;
    margin: auto;
    padding: 0 16px;
}

.as-cta-inner h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 32px;
    color: rgb(221, 221, 221);
}

.as-cta-inner a {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.as-cta-inner a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.as-cta-inner a i {
    color: var(--primary-color);
    margin-right: 5px;
    transition: color 0.3s ease;
}

.as-cta-inner a:hover i {
    color: var(--text-dark);
}

.as-stats {
    padding: 50px 0;
    background: var(--background-color);
    /* border-top: 1px solid #eeeeee; */
}

.as-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.as-stat-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}

.as-tech {
    padding: 50px 0;
}

.as-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 112px;
}

.as-tech-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: inline-block;
    padding-bottom: 12px;
    position: relative;
}

.as-tech-card h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.as-tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.as-tech-list li {
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.as-tech-list li i {
    color: #7f1a1a;
    font-size: 12px;
}

.as-testimonials {
    padding: 50px 0;
    background: #fdfdfd;
    overflow: hidden;
}

.as-testimonial-slider {
    position: relative;
    margin-bottom: 30px;
}

.as-testimonial-track {
    display: flex;
    gap: 32px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.as-testimonial-card {
    flex: 0 0 calc((100% - 64px) / 3);
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
}

.as-testimonial-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #7f1a1a;
    transition: width 0.3s ease;
}

.as-testimonial-card:hover::after {
    width: 80px;
}

.as-testimonial-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 24px;
    object-fit: contain;
    display: block;
}

.as-testimonial-card q {
    font-size: 14px;
    line-height: 1.6;
    color: #777;
    display: block;
    margin-bottom: 20px;
    font-style: italic;
}

.as-testimonial-card footer {
    font-size: 13px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.as-testimonial-controls {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-right: 16px;
}

.as-control-btn {
    width: 48px;
    height: 48px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.as-control-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.as-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .as-testimonial-card {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .as-testimonial-card {
        flex: 0 0 100%;
    }
}

.as-clients {
    padding: 50px 0;
    background: var(--background-color);
}

@media (max-width: 900px) {
    .as-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .as-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .as-tech-grid {
        grid-template-columns: 1fr;
    }
}

:root {
    /* Magnification levels */
    --lerp-0: 1;
    --lerp-1: 0.5625;
    --lerp-2: 0.25;
    --lerp-3: 0.0625;
    --lerp-4: 0;
    /* Layout Constants */
    --base-size: 56px;
    --gap: 80px;
    --radius-circle: 50%;
    --size-1: 1px;
    --surface-1: #e5e5e5;
    --text-1: #333;
}

.blocks {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 20px;
    border-radius: 30px;
    gap: var(--gap);
    background: rgba(255, 255, 255, 0.3);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
}

.blocks:hover {
    --show: 1;
}

.block {
    width: var(--base-size);
    height: var(--base-size);
    display: grid;
    place-items: center;
    position: relative;
    text-decoration: none;
    outline: none;
    /* transition for smooth expansion */
    transition: all 0.2s ease-out;
}

.block .block__item {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-circle);
    /* Force perfect circle */
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 10px;

    /* SCALE LOGIC: 1 + (0.5 * lerp) makes it 1.5x (150%) when hovered */
    transform:
        translateY(calc(var(--lerp, 0) * -25%)) scale(calc(1 + (var(--lerp, 0) * 0.75)));

    transition: transform 0.2s ease-out, outline 0.2s;
}

.block__item img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

:is(.block:hover, .block:focus-visible) .block__item {
    outline: var(--primary-color) var(--size-1) solid;
}

:is(.block:hover, .block:focus-visible) {
    --lerp: var(--lerp-0);
    z-index: 5;
}

.block:has(+ :is(.block:hover, .block:focus-visible)),
:is(.block:hover, .block:focus-visible)+.block {
    --lerp: var(--lerp-1);
    z-index: 4;
}

.block:has(+ .block + :is(.block:hover, .block:focus-visible)),
:is(.block:hover, .block:focus-visible)+.block+.block {
    --lerp: var(--lerp-2);
    z-index: 3;
}

@media (max-width: 768px) {
    :root {
        --base-size: 48px;
        --gap: 40px;
    }

    .blocks {
        padding: 15px;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    :root {
        --base-size: 40px;
        --gap: 25px;
    }

    .blocks {
        padding: 10px;
        gap: 20px;
    }
}

.as-projects {
    padding: 50px 0;
    background: #fafafa;
}

.as-project-tabs-primary {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.as-tab-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.as-tab-primary:hover {
    color: var(--secondary-color);
}

.as-tab-primary.active {
    color: var(--secondary-color);
}

.as-tab-primary.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary-color);
}

.as-tab-primary i {
    font-size: 16px;
}

.as-project-tabs-secondary {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.as-tab-secondary {
    padding: 8px 20px;
    background: var(--background-color);
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.as-tab-secondary:hover {
    border-color: #000;
    color: #000;
}

.as-tab-secondary.active {
    background: var(--text-dark);
    color: var(--background-color);
    border-color: var(--text-dark);
}

.as-tab-content {
    display: none;
    opacity: 0;
}

.as-tab-content.active {
    display: block;
    animation: fadeInTab 0.4s ease forwards;
}

.as-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.as-project-card {
    background: var(--background-color);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.as-project-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.as-project-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
}

.as-project-name {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.as-project-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    flex-grow: 1;
}

.as-project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.as-project-link:hover {
    color: var(--primary-color);
    gap: 8px;
}

.as-project-link i {
    font-size: 10px;
}

.as-projects-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.as-projects-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #ddd;
}

@media (max-width: 768px) {
    .as-project-tabs-primary {
        gap: 4px;
    }

    .as-tab-primary {
        padding: 12px 16px;
        font-size: 11px;
    }

    .as-tab-primary i {
        font-size: 14px;
    }

    .as-projects-grid {
        grid-template-columns: 1fr;
    }

    .as-tab-secondary {
        padding: 6px 16px;
        font-size: 12px;
    }
}

.as-hero-form button:hover i {
    color: var(--background-color) !important;
}