﻿/* ============================================================
   SMART AGL â€” Kiraz White Theme
   Matches the original Kiraz demo: https://live.21lab.co/kiraz/
   Applied AFTER Kiraz's style.css  
============================================================ */

/* â”€â”€ Color Variables â”€â”€ */
:root {
    --smartagl-primary: #1DB9A6;
    --smartagl-primary-dark: #179e8e;
    --smartagl-primary-light: #22d4be;
    --smartagl-dark: #1a1a2e;
    --smartagl-heading: #1a1a2e;
    --smartagl-body-text: #666;
    --smartagl-body-bg: #ffffff;
    --smartagl-light-bg: #f7f8fa;
    --smartagl-border: rgba(0,0,0,0.08);
    --smartagl-muted: #999;
}

/* â”€â”€ Global â”€â”€ */
::selection {
    background-color: var(--smartagl-primary);
    color: #fff;
}

body {
    background-color: var(--smartagl-body-bg);
    color: var(--smartagl-body-text);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--smartagl-heading); }
a:hover { color: var(--smartagl-primary); }

h1, h2, h3, h4, h5, h6 {
    color: var(--smartagl-heading);
    font-weight: 700;
}

/* â”€â”€ Layout â”€â”€ */
#site.site {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* All top-level wrappers should be full-width */
.site-content,
.site-content .content-body,
.site-content .main-content {
    width: 100%;
}

/* Full-width sections with centered content */
.section,
.section-white,
.section-light,
.section-dark,
.section-medium,
.hero-section,
.cta-section,
.welcome-marquee,
.partners-marquee,
.quote-block {
    width: 100%;
}

/* â”€â”€ Wrap â”€â”€ */
.wrap {
    max-width: 1280px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* â”€â”€ Topbar â”€â”€ */
.site-topbar {
    background-color: var(--smartagl-dark);
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 8px 0;
    margin: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 101;
    font-size: 13px;
    width: 100%;
}
.site-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-topbar .topbar-text {
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-topbar a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-topbar a:hover { color: var(--smartagl-primary); }
.site-topbar .social-icons { display: flex; gap: 12px; }
.site-topbar .social-icons a { color: rgba(255,255,255,0.5); }
.site-topbar .social-icons a:hover { color: var(--smartagl-primary); }

/* Topbar mobile */
@media (max-width: 768px) {
    .site-topbar { padding: 6px 0; font-size: 12px; }
    .site-topbar-inner { flex-wrap: wrap; gap: 4px; justify-content: center; }
    .site-topbar .topbar-text { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .site-topbar .social-icons { display: none; }
}
@media (max-width: 480px) {
    .site-topbar .topbar-text { gap: 8px; font-size: 11px; }
    .site-topbar .topbar-text span:last-child { display: none; }
}

/* â”€â”€ Header â”€â”€ */
.site-header {
    background-color: var(--smartagl-dark);
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    position: relative;
    z-index: 100;
    width: 100%;
    margin: 0;
    padding: 0;
}
.site-header.header-transparent {
    background: var(--smartagl-dark);
    border: none;
    position: relative;
    width: 100%;
    z-index: 100;
    margin: 0;
    margin-bottom: -80px; /* overlap hero by header height */
}

.site-header .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header .header-brand img { height: 44px; width: auto; }

/* Header brand + nav wrapper */
.wrap-brand {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Navigation */
.site-header .navigator .menu-primary {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header .navigator .menu-primary > li > a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    padding: 28px 18px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    text-decoration: none;
}
.site-header .navigator .menu-primary > li > a:hover,
.site-header .navigator .menu-primary > li.active > a {
    color: #fff;
}

/* When header is NOT transparent (inner pages) — still dark bg */
.site-header:not(.header-transparent) .navigator .menu-primary > li > a {
    color: rgba(255,255,255,0.85);
}
.site-header:not(.header-transparent) .navigator .menu-primary > li > a:hover,
.site-header:not(.header-transparent) .navigator .menu-primary > li.active > a {
    color: var(--smartagl-primary);
}

/* â”€â”€ Sticky Header â”€â”€ */
.site-header-sticky {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--smartagl-border);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    width: 100%;
}
.site-header-sticky.active {
    transform: translateY(0);
}
.site-header-sticky .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.site-header-sticky .header-brand img { height: 36px; }

.site-header-sticky .navigator .menu-primary {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header-sticky .navigator .menu-primary > li > a {
    color: var(--smartagl-heading);
    font-size: 13px;
    font-weight: 500;
    padding: 22px 16px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    text-decoration: none;
}
.site-header-sticky .navigator .menu-primary > li > a:hover,
.site-header-sticky .navigator .menu-primary > li.active > a {
    color: var(--smartagl-primary);
}

/* â”€â”€ Content Header (Page Banner) â”€â”€ */
.site-content .content-header {
    background-color: var(--smartagl-dark);
    padding: 60px 0 !important;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.site-content .content-header .page-title h1,
.site-content .content-header .page-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.site-content .content-header .page-subtitle {
    color: var(--smartagl-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.site-content .content-header .page-description {
    color: rgba(255,255,255,0.6);
    font-size: 1.125rem;
    max-width: 640px;
    margin-top: 1rem;
}

/* Decorative .lines */
.lines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
    z-index: 0;
}
.lines .line {
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.06);
}

/* Lines on white backgrounds */
.section .lines .line,
.section-white .lines .line {
    background: rgba(0,0,0,0.04);
}

/* â”€â”€ Content Body â”€â”€ */
.content-body {
    padding: 0;
    padding-bottom: 0 !important;
}

/* â”€â”€ Buttons â”€â”€ */
.button,
input[type="submit"],
button[type="submit"] {
    background-color: var(--smartagl-primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none;
}
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--smartagl-primary-dark);
    box-shadow: 0 8px 30px rgba(29,185,166,0.3);
    color: #fff;
}
.button.outline {
    background: transparent;
    border: 2px solid var(--smartagl-border);
    color: var(--smartagl-heading);
}
.button.outline:hover {
    border-color: var(--smartagl-primary);
    color: var(--smartagl-primary);
    background: transparent;
}
.button.white-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
}
.button.white-outline:hover {
    border-color: var(--smartagl-primary);
    color: var(--smartagl-primary);
}

/* CTA button glow */
.cta-button {
    position: relative;
    overflow: hidden;
}
.cta-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(29,185,166,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.cta-button:hover::before { opacity: 1; }

/* â”€â”€ Projects/Portfolio â”€â”€ */
.projects { position: relative; }

.projects-filter {
    margin-bottom: 40px;
}
.projects-filter ul,
.projects-filter-center {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    justify-content: center;
}
.projects-filter li a,
.projects-filter-center a {
    display: block;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--smartagl-muted);
    border: 1px solid var(--smartagl-border);
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
}
.projects-filter li a:hover,
.projects-filter li.active a,
.projects-filter-center a:hover,
.projects-filter-center a.active {
    color: #fff;
    border-color: var(--smartagl-primary);
    background-color: var(--smartagl-primary);
}

.projects-items {
    display: flex;
    flex-wrap: wrap;
    margin: -12px;
}
.projects-items .project {
    padding: 12px;
    width: 33.333%;
}
@media (max-width: 768px) {
    .projects-items .project { width: 50%; }
}
@media (max-width: 480px) {
    .projects-items .project { width: 100%; }
}

.project-inner {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--smartagl-border);
    transition: all 0.4s;
}
.project-inner:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    transform: translateY(-6px);
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
    margin: 0;
}
.project-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s;
}
.project-inner:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-info {
    padding: 24px;
}
.project-category a,
.project-category span {
    color: var(--smartagl-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
}
.project-title {
    margin: 8px 0 0;
    font-size: 1.25rem;
    font-weight: 700;
}
.project-title a,
.project-title span { color: var(--smartagl-heading); text-decoration: none; }
.project-title a:hover { color: var(--smartagl-primary); }

.project-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--smartagl-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 16px;
    text-decoration: none;
    transition: gap 0.3s;
}
.project-readmore:hover { gap: 12px; color: var(--smartagl-primary-dark); }

/* â”€â”€ Sections â”€â”€ */
.section { padding: 100px 0; }
.section-white { background-color: #fff; }
.section-light { background-color: var(--smartagl-light-bg); }
.section-dark {
    background-color: var(--smartagl-dark);
    color: rgba(255,255,255,0.7);
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 { color: #fff; }

.section-medium { background-color: var(--smartagl-light-bg); }

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--smartagl-heading);
    margin-bottom: 1rem;
    line-height: 1.15;
}
.section-title em {
    font-style: normal;
    color: var(--smartagl-primary);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-title em { color: var(--smartagl-primary); }

.section-subtitle {
    color: var(--smartagl-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}
.section-description {
    color: var(--smartagl-body-text);
    font-size: 1.125rem;
    max-width: 640px;
}

/* --- About / Company Grid --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-left .section-subtitle {
    margin-bottom: 1.2rem;
}
.about-left .section-title {
    margin-bottom: 0;
}
.about-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.about-right .about-link {
    align-self: flex-end;
}
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-right .about-link {
        align-self: flex-start;
    }
}

/* â”€â”€ Stats / Counters â”€â”€ */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 2rem;
}
.stat-item .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--smartagl-primary);
    line-height: 1;
}
.stat-item .stat-label {
    color: var(--smartagl-muted);
    font-size: 0.875rem;
    margin-top: 4px;
}

/* â”€â”€ Service Cards (White theme) â”€â”€ */
.service-card {
    background: #fff;
    border: 1px solid var(--smartagl-border);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.4s;
    display: block;
    text-decoration: none;
}
.service-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transform: translateY(-6px);
    border-color: transparent;
}
.service-card .service-icon {
    width: 56px; height: 56px;
    background: rgba(29,185,166,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background 0.3s;
}
.service-card:hover .service-icon {
    background: rgba(29,185,166,0.15);
}
.service-card .service-icon svg,
.service-card .service-icon i,
.service-card .service-icon img {
    width: 28px; height: 28px;
    color: var(--smartagl-primary);
}
.service-card h3 {
    color: var(--smartagl-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
    text-transform: none;
}
.service-card:hover h3 { color: var(--smartagl-primary); }
.service-card p {
    color: var(--smartagl-body-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Dark section service cards */
.section-dark .service-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.section-dark .service-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(29,185,166,0.3);
}
.section-dark .service-card h3 { color: #fff; }
.section-dark .service-card p { color: rgba(255,255,255,0.6); }

/* â”€â”€ Value Cards â”€â”€ */
.value-card {
    text-align: center;
    padding: 32px 24px;
}
.value-card .value-icon {
    width: 64px; height: 64px;
    background: rgba(29,185,166,0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.value-card h4 {
    color: var(--smartagl-heading);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.value-card p { color: var(--smartagl-body-text); font-size: 0.85rem; margin: 0; }

/* â”€â”€ Process Steps â”€â”€ */
.process-step {
    position: relative;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--smartagl-border);
    border-radius: 16px;
    transition: all 0.3s;
}
.process-step:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}
.process-step .step-number {
    color: var(--smartagl-primary);
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}
.process-step h4 {
    color: var(--smartagl-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
}
.process-step p { color: var(--smartagl-body-text); font-size: 0.85rem; margin: 0; }

/* â”€â”€ Footer â”€â”€ */
.site-content { margin-bottom: 0 !important; padding-bottom: 0 !important; }

.site-footer {
    position: relative;
    background-color: var(--smartagl-dark);
    color: rgba(255,255,255,0.6);
    padding: 0;
    margin-top: 0;
}
.site-footer:after {
    display: none;
}

/* Kill Kiraz white overlays inside footer */
.site-footer .footer-widgets .footer-widgets-inner:before,
.site-footer .footer-widgets .footer-aside-wrap:before {
    display: none !important;
}

.footer-widgets {
    padding: 48px 0 28px;
    position: relative;
    z-index: 2;
}
.footer-widgets-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.footer-aside-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
@media (max-width: 768px) {
    .footer-aside-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .footer-aside-wrap { grid-template-columns: 1fr; }
}
.footer-aside-wrap h4,
.footer-aside-wrap .widget-title {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
}
.footer-aside-wrap ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-aside-wrap ul li { margin-bottom: 8px; }
.footer-aside-wrap ul li a {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-aside-wrap ul li a:hover { color: var(--smartagl-primary); }
.footer-aside-wrap p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    position: relative;
    z-index: 2;
}
.footer-copyright-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.footer-copyright .copyright-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copyright .copyright-content {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}
.footer-copyright .copyright-content a { color: var(--smartagl-primary); }

/* Go to top */
.go-to-top a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: var(--smartagl-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s;
}
.go-to-top a:hover { background: var(--smartagl-primary-dark); }

/* Fixed scroll-to-top circle (Kiraz override) */
.site-footer .footer-copyright .go-to-top a {
    background-color: var(--smartagl-primary) !important;
    color: #fff !important;
}
.site-footer .footer-copyright .go-to-top a:before {
    color: #fff !important;
}
.site-footer .footer-copyright .go-to-top a:hover {
    background-color: var(--smartagl-primary-dark) !important;
    color: #fff !important;
}

/* == Off-Canvas / Mobile Menu (overrides Kiraz .sliding-menu) == */

/* Panel base: fixed right, full height, hidden off-screen */
#off-canvas-right,
#off-canvas-right.sliding-menu,
.off-canvas.sliding-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 360px !important;
    max-width: 85vw !important;
    background: var(--smartagl-dark) !important;
    z-index: 99999 !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s !important;
    overflow-y: auto !important;
    visibility: hidden !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* Panel open state */
body.off-canvas-right-active #off-canvas-right,
body.off-canvas-right-active #off-canvas-right.sliding-menu,
body.off-canvas-right-active .off-canvas.sliding-menu {
    transform: translateX(0) !important;
    visibility: visible !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s !important;
}

/* Backdrop overlay when open */
body.off-canvas-right-active::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    pointer-events: auto;
}

/* Close button (X) inside panel */
#off-canvas-right .off-canvas-toggle {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: 5 !important;
}
#off-canvas-right .off-canvas-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transform: rotate(45deg);
}
#off-canvas-right .off-canvas-toggle span::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transform: rotate(90deg);
}
/* Hide Kiraz Nucleo icon */
#off-canvas-right .off-canvas-toggle::before {
    display: none !important;
    content: none !important;
}

/* Panel inner wrap */
#off-canvas-right .off-canvas-wrap {
    padding: 80px 32px 32px !important;
    height: auto !important;
    display: block !important;
}

/* Navigation links */
#off-canvas-right .menu-sliding {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    overflow: visible !important;
    counter-reset: none !important;
}
#off-canvas-right .menu-sliding li {
    opacity: 1 !important;
    transform: none !important;
}
#off-canvas-right .menu-sliding li a {
    display: block !important;
    padding: 14px 0 !important;
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
#off-canvas-right .menu-sliding li a:hover { color: var(--smartagl-primary) !important; }
/* Kill Kiraz counter numbers */
#off-canvas-right .menu-sliding li a::before {
    display: none !important;
    content: none !important;
}

/* Hamburger toggle button in header */
a[data-target="off-canvas-right"] {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 100;
}
a[data-target="off-canvas-right"] span {
    display: block;
    position: absolute;
    left: 8px;
    top: 19px;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.2s;
}
a[data-target="off-canvas-right"]::before,
a[data-target="off-canvas-right"]::after {
    content: '';
    position: absolute;
    left: 8px;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.2s;
}
a[data-target="off-canvas-right"]::before { top: 12px; }
a[data-target="off-canvas-right"]::after { top: 26px; }

/* On dark header */
.site-header:not(.header-transparent) a[data-target="off-canvas-right"] span,
.site-header:not(.header-transparent) a[data-target="off-canvas-right"]::before,
.site-header:not(.header-transparent) a[data-target="off-canvas-right"]::after {
    background: #fff;
}
.site-header-sticky a[data-target="off-canvas-right"] span,
.site-header-sticky a[data-target="off-canvas-right"]::before,
.site-header-sticky a[data-target="off-canvas-right"]::after {
    background: var(--smartagl-heading);
}

@media (max-width: 1024px) {
    a[data-target="off-canvas-right"] { display: block !important; }
    .site-header .navigator,
    .site-header .header-cta,
    .site-header-sticky .navigator,
    .site-header-sticky .header-cta { display: none !important; }
}

/* â”€â”€ Hero Section (Home) â”€â”€ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--smartagl-dark);
    overflow: hidden;
}
.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-section .hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 1.5rem 80px;
    width: 100%;
}
.hero-section .hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    margin-bottom: 2rem;
}
.hero-section .hero-tag .dot {
    width: 8px; height: 8px;
    background: var(--smartagl-primary);
    border-radius: 50%;
    margin-right: 12px;
    animation: pulse 2s infinite;
}
.hero-section .hero-tag span {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 1.5rem;
}
@media (min-width: 768px) {
    .hero-section h1 { font-size: 4.25rem; }
}
.hero-section h1 em,
.hero-section h1 .highlight { 
    color: var(--smartagl-primary); 
    font-style: normal;
}
.hero-section .hero-desc {
    color: rgba(255,255,255,0.5);
    font-size: 1.125rem;
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.hero-section .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero company cards (01. / 02. / 03.) */
.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-card {
    display: flex;
    align-items: center;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    transition: all 0.4s;
    text-decoration: none;
}
.hero-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(29,185,166,0.3);
}
.hero-card .card-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.08);
    margin-right: 24px;
    transition: color 0.3s;
    line-height: 1;
}
.hero-card:hover .card-number { color: rgba(29,185,166,0.3); }
.hero-card .card-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--smartagl-primary);
}
.hero-card .card-text {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 4px;
}

/* â”€â”€ Welcome Marquee Text â”€â”€ */
.welcome-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 0;
}
.welcome-marquee .marquee-inner {
    display: flex;
    animation: marquee-text-scroll 25s linear infinite;
}
.welcome-marquee .marquee-word {
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    padding: 0 40px;
    -webkit-text-stroke: 1px rgba(0,0,0,0.08);
    color: transparent;
}
.welcome-marquee .marquee-word.filled {
    -webkit-text-stroke: 0;
    color: var(--smartagl-heading);
}

/* â”€â”€ Partner Logos Marquee â”€â”€ */
.partners-marquee {
    overflow: hidden;
    padding: 40px 0;
    border-top: 1px solid var(--smartagl-border);
    border-bottom: 1px solid var(--smartagl-border);
}
.partners-marquee .partners-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--smartagl-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}
.partners-marquee .partners-track {
    display: flex;
    gap: 60px;
    align-items: center;
    animation: marquee-rtl 30s linear infinite;
    width: max-content;
}
.partners-marquee .partners-track img,
.partners-marquee .partners-track svg {
    height: 32px;
    width: auto;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all 0.3s;
}
.partners-marquee .partners-track img:hover,
.partners-marquee .partners-track svg:hover {
    opacity: 0.8;
    filter: grayscale(0);
}

/* â”€â”€ Tech Stack Marquee â”€â”€ */
.tech-marquee {
    display: flex;
    gap: 48px;
    animation: marquee-scroll 30s linear infinite;
    white-space: nowrap;
}
.tech-marquee span {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.12);
}
/* Light bg version */
.section-white .tech-marquee span,
.section-light .tech-marquee span {
    color: rgba(0,0,0,0.06);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}
@keyframes marquee-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}
@keyframes marquee-text-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* â”€â”€ CTA Section â”€â”€ */
.cta-section {
    background: var(--smartagl-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-section .cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.cta-section h2 {
    color: #fff;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
}
.cta-section h2 em {
    color: var(--smartagl-primary);
    font-style: normal;
}
.cta-section .cta-subtitle {
    color: var(--smartagl-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .cta-section .cta-inner { grid-template-columns: 1fr; }
}

/* CTA form on dark background */
.cta-section input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.cta-section textarea,
.cta-section select {
    background-color: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #fff !important;
    box-shadow: none !important;
}
.cta-section input::placeholder,
.cta-section textarea::placeholder {
    color: rgba(255,255,255,0.45) !important;
}
.cta-section input:focus,
.cta-section textarea:focus,
.cta-section select:focus {
    border-color: var(--smartagl-primary) !important;
    box-shadow: 0 0 0 3px rgba(29,185,166,0.15) !important;
}

  /* ═══════════════════════════════════════════════
     PORTFOLIO SHOWCASE (Laptop Centered Slider)
     ═══════════════════════════════════════════════ */
  .portfolio-showcase {
      background: var(--smartagl-primary);
      padding: 80px 0 100px;
      position: relative;
      overflow: hidden; /* clips curve + slider edges */
  }
  .showcase-curve {
      position: absolute; bottom: 0; left: 0; width: 100%; line-height: 0; z-index: 3; transform: rotate(180deg);
  }
  .showcase-curve svg { width: 100%; height: 60px; display: block; }

  .portfolio-showcase .section-subtitle {
      color: #fff; opacity: 0.7; font-size: 0.8rem; letter-spacing: 0.15em;
  }
  .portfolio-showcase .section-title { color: #fff; }
  .portfolio-showcase .section-title em {
      color: #fff; font-style: italic; position: relative;
  }
  .portfolio-showcase .section-title em::after {
      content: ""; position: absolute; top: -10px; left: -14px; right: -14px; bottom: -6px;
      border: 2px solid rgba(255,255,255,0.5); border-radius: 50%; pointer-events: none;
  }
  .showcase-btn {
      display: inline-flex; align-items: center; gap: 12px;
      background: #fff; color: var(--smartagl-heading); font-size: 0.85rem; font-weight: 600;
      padding: 14px 28px; border-radius: 50px; text-decoration: none; transition: all 0.3s;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1); position: relative; z-index: 20;
  }
  .showcase-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
  .showcase-btn-arrow {
      display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
      border-radius: 50%; background: var(--smartagl-primary); color: #fff;
  }

  /* Carousel Container */
  .portfolio-slider-container {
      position: relative;
      width: 100%;
      padding: 40px 0;
      overflow: visible;
      opacity: 0; /* Hidden until JS centers the first slide */
      transition: opacity 0.3s ease;
  }

  /* The actual scrolling Track. Centered via JS translateX */
  .portfolio-slider-track {
      display: flex;
      align-items: center;
      transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
      width: max-content;
      will-change: transform;
  }

  /* Individual slide */
  .portfolio-slide {
      flex-shrink: 0;
      width: 520px;
      max-width: 55vw;
      margin: 0 20px;
      transition: opacity 0.5s, transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
      opacity: 0.35;
      transform: scale(0.85);
      border-radius: 4px;
      overflow: hidden;
      position: relative;
      z-index: 5;
  }

  .portfolio-slide.active {
      opacity: 1;
      transform: scale(1);
      z-index: 6; 
  }

  .slide-img-wrap {
      position: relative;
      width: 100%;
  }
  .slide-img-wrap img {
      width: 100%;
      aspect-ratio: 588 / 370; /* Exact mac.png screen area ratio */
      object-fit: cover;
      display: block;
      border-radius: 0;
  }

  .slide-img-placeholder {
      width: 100%;
      aspect-ratio: 588 / 370;
      background: linear-gradient(135deg, #1a1a2e, #2a2a4e);
      display: flex; align-items: center; justify-content: center;
  }
  .slide-img-placeholder img { width: 120px; opacity: 0.15; }

  .slide-info-wrap {
      display: none; /* Hidden — screenshots shown inside laptop frame only */
  }

  /* Overlay Laptop PNG Image Mask */
  .slider-laptop-mask {
      position: absolute;
      top: 50%; left: 50%;
      /* Screen center is 47.7% from top of mac.png (above frame center due to chin).
         Push frame DOWN by ~9px so screen area aligns with slide content. */
      transform: translate(-50%, calc(-50% + 9px));
      /* Frame width = slide_width / 0.784  (screen is 78.4% of mac.png width) */
      width: calc(520px / 0.784);
      max-width: calc(55vw / 0.784);
      pointer-events: none;
      z-index: 10;
  }

  .laptop-png {
      width: 100%;
      height: auto;
      display: block;
      filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  }

  /* Floating Arrows — thin outline circles with chevron */
  .slider-nav-arrow {
      position: absolute;
      top: 50%; transform: translateY(-50%);
      width: 48px; height: 48px;
      border-radius: 50%;
      background: none;
      border: 1px solid rgba(255,255,255,0.25);
      color: rgba(255,255,255,0.5);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; z-index: 20; transition: all 0.3s;
      padding: 0;
      outline: none;
      -webkit-appearance: none;
  }
  .slider-nav-arrow svg {
      width: 18px; height: 18px;
      stroke-width: 1.5;
  }
  .slider-nav-arrow.slider-prev {
      left: calc(50% - 360px);
  }
  .slider-nav-arrow.slider-next {
      right: calc(50% - 360px);
  }
  .slider-nav-arrow:hover {
      border-color: rgba(255,255,255,0.6);
      color: #fff;
      transform: translateY(-50%) scale(1.05);
  }

  /* Dots */
  .showcase-dots {
      display: flex; justify-content: center; gap: 10px; margin-top: 10px; position: relative; z-index: 10;
  }
  .showcase-dot {
      width: 8px; height: 8px; border-radius: 50%; border: none;
      background: rgba(255,255,255,0.3); cursor: pointer; transition: all 0.3s; padding: 0;
  }
  .showcase-dot.active, .showcase-dot:hover { background: #fff; transform: scale(1.4); }

  /* Responsive fixes */
  @media (max-width: 1100px) {
      .slider-nav-arrow.slider-prev { left: 20px; }
      .slider-nav-arrow.slider-next { right: 20px; }
  }
  @media (max-width: 768px) {
      .slider-laptop-mask { display: none; }
      .portfolio-slide { width: 85vw; max-width: none; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
      .portfolio-slide.active { opacity: 1; transform: scale(1); }
      .slide-img-wrap img { border-radius: 8px; }
      .slider-nav-arrow { width: 44px; height: 44px; display: none; }
  }

  /* ═══════════════════════════════════════════════
     CEO QUOTE â€” Two-column with photo
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* Project Name Display (below slider) */
  .project-name-display {
      text-align: center;
      padding: 24px 0 10px;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .project-name-display.visible {
      opacity: 1;
      transform: translateY(0);
  }
  .project-name-title {
      font-size: 2rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #fff;
      margin: 0;
      line-height: 1.2;
  }
  .project-name-category {
      font-size: 0.95rem;
      color: rgba(255,255,255,0.55);
      margin: 6px 0 0;
      font-weight: 400;
      max-width: 500px;
      margin-left: auto;
      margin-right: auto;
  }
  @media (max-width: 768px) {
      .project-name-title { font-size: 1.35rem; }
      .project-name-category { font-size: 0.85rem; }
  }

.ceo-quote-section {
    padding: 80px 0;
}
.ceo-quote-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}
/* Photo side */
.ceo-photo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}
.ceo-photo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.ceo-photo-inner {
    width: 100%;
    aspect-ratio: 3/4;
    max-width: 380px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    filter: grayscale(100%);
}
/* Speech bubble */
.ceo-bubble {
    position: absolute;
    top: 15%;
    right: -20px;
    z-index: 2;
}
/* Quote side */
.ceo-quote-content {
    position: relative;
}
.ceo-blockquote {
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--smartagl-primary);
    line-height: 1.35;
    margin: 0;
    padding: 0;
    border: none;
}
.ceo-cite {
    display: block;
    margin-top: 28px;
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--smartagl-heading);
}

@media (max-width: 768px) {
    .ceo-quote-grid { grid-template-columns: 1fr; gap: 32px; }
    .ceo-blockquote { font-size: 1.4rem; }
    .ceo-photo-inner { max-width: 260px; }
}

/* â”€â”€ Why Choose Cards (numbered) â”€â”€ */
.reason-card {
    background: #fff;
    border: 1px solid var(--smartagl-border);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.3s;
}
.reason-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}
.reason-card .reason-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--smartagl-primary);
    margin-bottom: 16px;
}
.reason-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--smartagl-heading);
    text-transform: uppercase;
    margin: 0 0 12px;
}
.reason-card p {
    color: var(--smartagl-body-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
.reason-card .reason-icon {
    width: 80px;
    height: 80px;
    margin-top: 24px;
}

/* â”€â”€ Blog Cards â”€â”€ */
.blog-card {
    background: #fff;
    border: 1px solid var(--smartagl-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
}
.blog-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.blog-card .blog-thumb { overflow: hidden; }
.blog-card .blog-thumb img {
    width: 100%;
    display: block;
    transition: transform 0.6s;
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-card .blog-content { padding: 24px; }
.blog-card .blog-date {
    font-size: 0.75rem;
    color: var(--smartagl-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 8px 0 0;
    color: var(--smartagl-heading);
}
.blog-card h3 a { text-decoration: none; color: inherit; }
.blog-card h3 a:hover { color: var(--smartagl-primary); }

/* â”€â”€ Animations â”€â”€ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* â”€â”€ Grid utilities â”€â”€ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* â”€â”€ Form Styles (white theme) â”€â”€ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    color: var(--smartagl-heading);
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--smartagl-primary);
    box-shadow: 0 0 0 3px rgba(29,185,166,0.1);
}

/* Dark section forms */
.section-dark input[type="text"],
.section-dark input[type="email"],
.section-dark input[type="tel"],
.section-dark textarea,
.section-dark select {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}
.section-dark input::placeholder,
.section-dark textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

/* â”€â”€ Contact Cards â”€â”€ */
.contact-card {
    background: #fff;
    border: 1px solid var(--smartagl-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}
.contact-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}
.contact-card .contact-icon {
    width: 48px; height: 48px;
    background: rgba(29,185,166,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--smartagl-primary);
}
.contact-card h4 {
    color: var(--smartagl-heading);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 8px;
    text-transform: uppercase;
}
.contact-card p, .contact-card a {
    color: var(--smartagl-body-text);
    font-size: 0.85rem;
    margin: 0;
}
.contact-card a:hover { color: var(--smartagl-primary); }

/* â”€â”€ Product Cards â”€â”€ */
.product-card {
    background: #fff;
    border: 1px solid var(--smartagl-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
}
.product-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: translateY(-6px);
}
.product-card .product-thumb { overflow: hidden; }
.product-card .product-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.6s;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-card .product-content { padding: 24px; }
.product-card .product-category {
    color: var(--smartagl-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.product-card h3 {
    color: var(--smartagl-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 8px 0;
}
.product-card p {
    color: var(--smartagl-body-text);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 1024px) {
    .hero-section h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .site-content .content-header { padding: 50px 0; }
    .hero-section .hero-content { padding: 100px 1.5rem 60px; }
    .welcome-marquee .marquee-word { font-size: 4rem; }
}

/* â”€â”€ Loading screen â”€â”€ */
body:not(.is-loaded)::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    transition: opacity 0.4s;
}
body:not(.is-loaded)::after {
    content: '';
    position: fixed;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: var(--smartagl-primary);
    border-radius: 50%;
    z-index: 100000;
    animation: spin 0.6s linear infinite;
}
body.is-loaded::before,
body.is-loaded::after { opacity: 0; pointer-events: none; }
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* â”€â”€ Scrollbar â”€â”€ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--smartagl-primary); }

/* â”€â”€ Footer social icons â”€â”€ */
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s;
    text-decoration: none;
}
.footer-social a:hover {
    border-color: var(--smartagl-primary);
    color: var(--smartagl-primary);
    background: rgba(29,185,166,0.1);
}
.footer-social a svg { width: 18px; height: 18px; }

/* â”€â”€ Language switcher â”€â”€ */
.lang-switch {
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s;
}
.lang-switch:hover {
    border-color: var(--smartagl-primary);
    color: var(--smartagl-primary);
}
/* Non-transparent header lang switch â†’ dark */
.site-header:not(.header-transparent) .lang-switch {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}
.site-header:not(.header-transparent) .lang-switch:hover {
    border-color: var(--smartagl-primary);
    color: var(--smartagl-primary);
}
/* Sticky header lang switch â†’ dark */

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PAGE BANNER â€” inner page hero (replaces content-header)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.page-banner {
    position: relative;
    overflow: hidden;
    background: var(--smartagl-dark);
    padding: 60px 0 50px;
    text-align: center;
}
.page-banner .lines {
    z-index: 0;
}
.page-banner .wrap {
    position: relative;
    z-index: 10;
}

/* Scrolling background text */
.page-banner-bg-text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.page-banner-bg-text .marquee-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 8rem;
    font-weight: 900;
    color: #fff;
    opacity: 0.04;
    line-height: 1;
    animation: marquee-text-scroll 25s linear infinite;
}

/* Banner title */
.page-banner-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto;
}
.page-banner-title em {
    color: var(--smartagl-primary);
    font-style: normal;
}

/* Banner subtitle text */
.page-banner .section-subtitle {
    color: var(--smartagl-primary);
}
.page-banner p {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Stats row in banner */
.page-banner .stats-row {
    justify-content: center;
    margin-top: 32px;
}
.page-banner .stat-number {
    color: var(--smartagl-primary);
}

/* â”€ Responsive â”€ */
@media (max-width: 768px) {
    .page-banner { padding: 40px 0 30px; }
    .page-banner-title { font-size: 1.8rem; }
    .page-banner-bg-text .marquee-text { font-size: 4rem; }
}
.site-header-sticky .lang-switch {
    border-color: var(--smartagl-border);
    color: var(--smartagl-heading);
}
.site-header-sticky .lang-switch:hover {
    border-color: var(--smartagl-primary);
    color: var(--smartagl-primary);
}

/* â”€â”€ CTA Strip â”€â”€ */
.cta-strip {
    background: var(--smartagl-light-bg);
    padding: 16px 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0;
}
.cta-strip p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--smartagl-body-text);
}
.section-dark .cta-strip {
    background: rgba(255,255,255,0.05);
}
.section-dark .cta-strip p {
    color: rgba(255,255,255,0.6);
}

/* â”€â”€ FAQ Accordion â”€â”€ */
.faq-item {
    border: 1px solid var(--smartagl-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.faq-item:hover { border-color: rgba(29,185,166,0.2); }
.faq-item .faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--smartagl-heading);
}
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}
.faq-item.faq-open .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}
.faq-item .faq-answer p {
    color: var(--smartagl-body-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* â”€â”€ Typed cursor animation â”€â”€ */
.typed-cursor {
    color: var(--smartagl-primary);
    font-weight: 300;
    animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
    50% { opacity: 0; }
}


