/* ============================================
   HAFIZ DEVELOPERS — Section Redesign v4
   ============================================ */

:root {
    --ease-brand: cubic-bezier(0.16, 1, 0.3, 1);
}

/* —— Universal spacing rhythm —— */
.section-pad-tight { padding: 72px 0; }
.section-pad-loose { padding: 120px 0; }
.section-bg-tint {
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 100%);
}
.section-bg-muted { background: var(--bg-secondary); }

/* —— HERO —— */
.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-brand), transform 0.6s var(--ease-brand);
}
.hero-title.revealed .word { opacity: 1; transform: translateY(0); }

.hero-subtitle {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-brand) 0.4s, transform 0.7s var(--ease-brand) 0.4s;
}
.hero-subtitle.revealed { opacity: 1; transform: translateY(0); }

.hero-label, .hero-actions {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease-brand), transform 0.6s var(--ease-brand);
}
.hero-label.revealed { opacity: 1; transform: none; transition-delay: 0.1s; }
.hero-actions.revealed { opacity: 1; transform: none; transition-delay: 0.55s; }

.hero-trust strong.stat-counter {
    font-variant-numeric: tabular-nums;
}

.btn-magnetic {
    position: relative;
    transition: transform 0.35s var(--ease-brand), box-shadow 0.35s var(--ease-brand);
}
.btn-magnetic:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 36px rgba(var(--primary-rgb), 0.35);
}

/* —— TECH SCROLL (replaces grid) —— */
.technologies {
    overflow: visible;
}

#technologies.section,
#technologies.section-pad-tight {
    padding: 10px 0 14px;
}

#technologies .section-header {
    margin-bottom: 10px;
}

#technologies .section-tag {
    margin-bottom: 6px;
    padding: 4px 10px;
    font-size: 0.7rem;
}

#technologies .section-title {
    margin-bottom: 4px;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
}

#technologies .section-desc {
    font-size: 0.88rem;
    line-height: 1.45;
}

#home.section-pad-loose {
    padding-bottom: 48px;
}

#services.section-pad-loose {
    padding-top: 64px;
}

.technologies .container {
    overflow: visible;
}

.tech-scroll-zone {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
    padding: 0;
    overflow: visible;
}

.tech-scroll-row {
    overflow-x: clip;
    overflow-y: visible;
    padding: 0;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tech-scroll-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: techScrollLeft 40s linear infinite;
    padding: 0;
    align-items: center;
}

.tech-scroll-row.reverse .tech-scroll-track {
    animation-name: techScrollRight;
}

.tech-scroll-row:hover .tech-scroll-track {
    animation-play-state: paused;
}

.tech-scroll-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    white-space: nowrap;
    transition: transform 0.4s var(--ease-brand), box-shadow 0.4s var(--ease-brand), border-color 0.4s var(--ease-brand);
    flex-shrink: 0;
}

.tech-scroll-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.4s var(--ease-brand);
}

.tech-scroll-item span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tech-scroll-item:hover {
    transform: scale(1.05);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
}

.tech-scroll-item:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.35));
}

@keyframes techScrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes techScrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.tech-stack-grid { display: none !important; }
.tech-marquee-wrap { display: none !important; }

/* —— SERVICES ACCORDION —— */
.services-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 28px 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.services-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.services-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.services-stat-icon svg { width: 22px; height: 22px; }

.services-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.services-stat span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.services-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.services-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
    transition: grid-template-columns 0.5s var(--ease-brand);
}

.services-cards-row:has(.svc-card.is-expanded:nth-child(1)) {
    grid-template-columns: 1.45fr 0.55fr;
}

.services-cards-row:has(.svc-card.is-expanded:nth-child(2)) {
    grid-template-columns: 0.55fr 1.45fr;
}

.svc-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.45s var(--ease-brand), border-color 0.45s var(--ease-brand), transform 0.45s var(--ease-brand);
}

.svc-card.is-expanded {
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: var(--shadow-lg);
}

.svc-card-trigger {
    width: 100%;
    height: 100%;
    padding: 28px;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    display: block;
}

.svc-featured-badge {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.svc-card.is-expanded .svc-featured-badge { display: inline-flex; }

.svc-card-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    transition: gap 0.5s var(--ease-brand);
}

.svc-card.is-expanded .svc-card-layout {
    flex-direction: row;
    align-items: center;
    gap: 28px;
}

.svc-card-main {
    flex: 1;
    min-width: 0;
}

.svc-card-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.svc-card.is-expanded .svc-card-top {
    margin-top: 28px;
}

.svc-card-top .service-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
}

.svc-card-top h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.svc-card-top p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.svc-tech-block {
    margin-top: 4px;
}

.svc-tech-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.svc-card-visual {
    flex: 0 0 0;
    width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(20px);
    transition: flex 0.55s var(--ease-brand), width 0.55s var(--ease-brand), max-width 0.55s var(--ease-brand), opacity 0.45s var(--ease-brand), transform 0.55s var(--ease-brand);
}

.svc-card.is-expanded .svc-card-visual {
    flex: 0 0 42%;
    width: 42%;
    max-width: 42%;
    opacity: 1;
    transform: translateX(0);
}

.svc-card-visual img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 4/5;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.svc-card:not(.is-expanded):hover {
    border-color: rgba(var(--primary-rgb), 0.22);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.svc-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 20px;
}

.svc-checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.svc-checklist li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

.svc-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.svc-tech-tags span {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

/* —— INDUSTRIES GRID —— */
.industry-pills { display: none !important; }
.industries-grid { display: grid !important; grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) {
    .industries-grid { grid-template-columns: repeat(4, 1fr); }
}

.industry-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    text-align: center;
}

.industry-card {
    text-align: center;
    padding: 28px 20px;
}

.ind-icon-wrap .ind-icon {
    width: 24px;
    height: 24px;
    display: block;
    color: inherit;
}

/* —— PROCESS LAYOUT —— */
.process-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.process-steps-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-row {
    display: grid;
    grid-template-columns: 48px 48px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--border-color);
}

.process-row:last-child { border-bottom: none; }

.process-row-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-row-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-row-icon svg { width: 20px; height: 20px; }

.process-row-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.process-row-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.process-row-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
}

.process-row-time svg { width: 14px; height: 14px; flex-shrink: 0; }

.process-side-card {
    padding: 32px 28px;
    text-align: center;
    position: sticky;
    top: 100px;
}

.process-side-emoji {
    font-size: 3rem;
    margin-bottom: 16px;
}

.process-side-card h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.process-side-card > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.process-side-checks {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.process-side-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.process-side-checks svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

/* —— FAQ LAYOUT —— */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.faq-list { max-width: none; margin: 0; }

.faq-q-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.faq-q-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-q-icon svg { width: 18px; height: 18px; }

.faq-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    margin-top: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.faq-cta-bar p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.faq-sidebar {
    padding: 32px 24px;
    text-align: center;
    position: sticky;
    top: 100px;
}

.faq-sidebar-art {
    font-size: 3rem;
    margin-bottom: 12px;
}

.faq-sidebar h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.faq-sidebar > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.faq-sidebar .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.faq-sidebar-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 0;
}

/* —— CONTACT CLICKABLE —— */
.contact-clickable {
    cursor: pointer;
    transition: background 0.3s var(--ease-brand);
    border-radius: 12px;
    margin: 0 -12px;
    padding: 16px 12px !important;
    text-decoration: none;
    color: inherit;
}

.contact-clickable:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.contact-icon-accent {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
}

.contact-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-clickable:hover span { color: var(--primary); }

@media (max-width: 1024px) {
    .services-cards-row { grid-template-columns: 1fr; }
    .services-cards-row:has(.svc-card.is-expanded:nth-child(1)),
    .services-cards-row:has(.svc-card.is-expanded:nth-child(2)) {
        grid-template-columns: 1fr;
    }
    .svc-card.is-expanded .svc-card-layout { flex-direction: column; }
    .svc-card.is-expanded .svc-card-visual {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    .process-layout { grid-template-columns: 1fr; }
    .process-side-card { position: static; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-sidebar { position: static; }
}

@media (max-width: 768px) {
    .services-stats { gap: 24px; padding: 20px; }
    .svc-checklist { grid-template-columns: 1fr; }
    .process-row {
        grid-template-columns: 40px 40px 1fr;
        grid-template-rows: auto auto;
    }
    .process-row-time {
        grid-column: 2 / -1;
        justify-self: start;
        margin-left: 56px;
    }
    .faq-cta-bar { flex-direction: column; text-align: center; }
}

/* —— INDUSTRY PILLS (legacy hidden) —— */
.industry-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.industry-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    cursor: default;
    transition: all 0.35s var(--ease-brand);
}

.industry-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    transition: opacity 0.35s var(--ease-brand), transform 0.35s var(--ease-brand);
}

.industry-pill:hover {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-rgb), 0.06);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.industry-pill:hover .industry-pill-dot {
    opacity: 1;
    transform: scale(1.3);
}

/* —— PROCESS TIMELINE (legacy) —— */
.process-timeline {
    position: relative;
    max-width: 760px;
}

.timeline-line-svg {
    position: absolute;
    left: 27px;
    top: 28px;
    bottom: 28px;
    width: 3px;
    overflow: visible;
    pointer-events: none;
}

.timeline-line-svg line {
    stroke: rgba(var(--primary-rgb), 0.2);
    stroke-width: 3;
}
.timeline-line-svg .timeline-progress {
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.2s var(--ease-brand);
}

.process-step {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s var(--ease-brand), transform 0.6s var(--ease-brand);
}
.process-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.process-timeline::before { display: none; }

/* —— ABOUT ASYMMETRIC —— */
.about-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 56px;
}

.about-visual-large {
    position: relative;
}

.about-visual-large img {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-visual-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    padding: 20px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
}

.about-story .about-text {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.85;
    margin-bottom: 0;
}

.about-story .section-tag { margin-bottom: 20px; }

.about-story-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.about-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-primary);
}

.about-stat-item {
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid var(--border-color);
}
.about-stat-item:last-child { border-right: none; }

.about-stat-item strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.about-stat-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.about-grid, .about-features, .about-visual .about-card { display: none !important; }

/* —— WHY ALTERNATING —— */
.why-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.why-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
}
.why-row:last-child { border-bottom: none; }

.why-row-right {
    flex-direction: row-reverse;
    text-align: right;
}
.why-row-right .why-icon-wrap { margin-left: auto; }

.why-row h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.why-row p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}
.why-row-right p { margin-left: auto; }

.why-grid { display: none !important; }

/* —— TESTIMONIALS CAROUSEL —— */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
    padding: 12px 0 20px;
    cursor: grab;
    user-select: none;
}
.testimonials-carousel.is-dragging { cursor: grabbing; }

.testimonial-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s var(--ease-brand);
    will-change: transform;
}
.testimonials-carousel.is-dragging .testimonial-track {
    transition: none;
}

.testimonial-card {
    min-width: calc(50% - 12px);
    transition: transform 0.5s var(--ease-brand), opacity 0.5s var(--ease-brand), filter 0.5s var(--ease-brand);
    transform: scale(0.94);
    opacity: 0.55;
    filter: blur(1px);
}
.testimonial-card.is-active {
    transform: scale(1);
    opacity: 1;
    filter: none;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    padding: 0;
    transition: all 0.35s var(--ease-brand);
}
.testimonial-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* —— FAQ —— */
.faq-item .faq-answer {
    transition: max-height 0.3s var(--ease-brand);
}
.faq-icon {
    transition: transform 0.3s var(--ease-brand);
    display: inline-flex;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
}
.faq-item.active .faq-icon { transform: none; }

/* —— CONTACT FLOATING LABELS —— */
.float-field {
    position: relative;
    margin-bottom: 20px;
}
.float-field input,
.float-field textarea {
    width: 100%;
    padding: 18px 16px 8px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s var(--ease-brand), box-shadow 0.3s var(--ease-brand);
}
.float-field textarea { min-height: 120px; resize: vertical; padding-top: 22px; }
.float-field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.92rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.25s var(--ease-brand);
}
.float-field textarea + label { top: 18px; transform: none; }
.float-field input:focus,
.float-field input:not(:placeholder-shown),
.float-field textarea:focus,
.float-field textarea:not(:placeholder-shown) {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label,
.float-field textarea:focus + label,
.float-field textarea:not(:placeholder-shown) + label {
    top: 8px;
    transform: none;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
}
.float-field textarea:focus + label,
.float-field textarea:not(:placeholder-shown) + label { top: 10px; }

.contact-form .form-group > label { display: none; }

.btn-loading {
    position: relative;
    pointer-events: none;
}
.btn-loading span { opacity: 0; }
.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* —— Scroll reveal variety —— */
[data-aos="scale-in"] { transform: scale(0.92); }
[data-aos="clip-up"] { clip-path: inset(100% 0 0 0); }
[data-aos="clip-up"].aos-animate { clip-path: inset(0 0 0 0); }

[data-aos] {
    transition-duration: 0.75s;
    transition-timing-function: var(--ease-brand);
}

.why-list .why-icon-wrap { margin-bottom: 0; flex-shrink: 0; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.form-row .float-field { margin-bottom: 0; }

@media (max-width: 1024px) {
    .about-split { grid-template-columns: 1fr; gap: 40px; }
    .about-visual-badge { right: 12px; bottom: -16px; }
    .about-stat-strip { grid-template-columns: repeat(2, 1fr); }
    .about-stat-item:nth-child(2) { border-right: none; }
    .about-stat-item:nth-child(1),
    .about-stat-item:nth-child(2) { border-bottom: 1px solid var(--border-color); }
    .testimonial-card { min-width: 100%; }
}

@media (max-width: 768px) {
    .section-pad-loose { padding: 80px 0; }
    .section-pad-tight { padding: 56px 0; }
    #technologies.section,
    #technologies.section-pad-tight { padding: 8px 0 10px; }
    #technologies .section-header { margin-bottom: 8px; }
    #home.section-pad-loose { padding-bottom: 36px; }
    #services.section-pad-loose { padding-top: 48px; }
    .why-row, .why-row-right {
        flex-direction: column;
        text-align: left;
    }
    .why-row-right .why-icon-wrap { margin-left: 0; }
    .why-row-right p { margin-left: 0; }
    .about-stat-strip { grid-template-columns: 1fr 1fr; }
    .about-stat-item strong { font-size: 1.6rem; }
}
