html {
    scroll-behavior: smooth;
}

/* Background Effects */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.mesh-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.mesh-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(28, 177, 234, 0.35) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: float-1 20s ease-in-out infinite;
}

.mesh-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 23, 32, 0.12) 0%, transparent 70%);
    bottom: 10%;
    right: -100px;
    animation: float-2 25s ease-in-out infinite;
}

@keyframes float-1 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(30px, 30px); } }
@keyframes float-2 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-30px, -20px); } }

/* Main Container */
.main-content {
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-about {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(28, 177, 234, 0.08);
    border: 1px solid rgba(28, 177, 234, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1cb1ea;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #0f1720;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title span { color: #1cb1ea; }

.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: #6b7280;
    max-width: 640px;
    line-height: 1.8;
}

/* Sections */
.section {
    padding: 4rem 1.5rem;
}

.section-alt {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1cb1ea;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #0f1720;
    letter-spacing: -0.02em;
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.service-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 32, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1cb1ea;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: rgba(28, 177, 234, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -12px rgba(28, 177, 234, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.08);
}

.service-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: #0f1720;
}

.service-desc {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.55;
}

/* Client Cards */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.client-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 32, 0.08);
    border-radius: 14px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.client-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.06);
}

.client-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.client-card:hover .client-icon {
    transform: scale(1.06);
}

.client-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #0f1720;
}

.client-desc {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Principles Cards */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.principle-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 32, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.principle-card:hover {
    border-color: rgba(28, 177, 234, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(28, 177, 234, 0.12);
}

.principle-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.principle-icon-box {
    width: 3rem;
    height: 3rem;
    background: rgba(28, 177, 234, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.principle-card:hover .principle-icon-box {
    transform: scale(1.08);
}

.principle-card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0f1720;
    letter-spacing: -0.01em;
}

.principle-card-content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Hero visual layout */
.hero-about-inner {
    display: block;
}

.hero-visual {
    display: none;
    position: relative;
    width: min(42vw, 450px);
    aspect-ratio: 1;
    flex-shrink: 0;
}

.hero-graphic-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(28, 177, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: about-hero-pulse 4s ease-in-out infinite alternate;
}

.hero-svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

@keyframes about-hero-pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: clamp(14px, 2.6vh, 28px);
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 15;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hero-scroll-indicator.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-scroll-label {
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 600;
    color: #4b5563;
    letter-spacing: -0.01em;
    line-height: 1;
}

.hero-scroll-chevron {
    width: 16px;
    height: 16px;
    border-right: 2.5px solid #1cb1ea;
    border-bottom: 2.5px solid #1cb1ea;
    transform: rotate(45deg);
    animation: hero-scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
    0%, 100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.9;
    }
    50% {
        transform: rotate(45deg) translate(4px, 4px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mesh-gradient { animation: none; }
    .hero-graphic-bg { animation: none; }
    .hero-scroll-chevron { animation: none; }
}

/* Focus */
a:focus-visible { outline: 2px solid #1cb1ea; outline-offset: 2px; }

@media (min-width: 768px) {
    .hero-about {
        min-height: 100vh;
        min-height: 100dvh;
        padding: clamp(16px, 3.5vh, 48px) 2rem clamp(24px, 5.5vh, 68px);
    }

    .hero-about-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: clamp(24px, 4vw, 56px);
        flex-wrap: nowrap;
        transform: translateY(0);
    }

    .hero-copy {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 720px;
    }

    .hero-visual {
        display: block;
        width: min(40vw, 480px);
        margin: 0;
    }

    .hero-scroll-indicator {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .hero-about {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-visual {
        width: min(34vw, 500px);
    }
}

/* 1366x768 desktop (and similar short laptop heights): move hero content down */
@media (min-width: 1280px) and (max-width: 1599px) and (max-height: 820px) and (hover: hover) and (pointer: fine) {
    .hero-about-inner {
        transform: translateY(120px);
    }
}

/* iPad family: keep hero full height and keep indicator visible on first view */
@media (min-width: 768px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    .hero-about-inner {
        transform: translateY(-70px);
    }

    .hero-scroll-indicator {
        position: fixed;
        left: 50%;
        bottom: calc(88px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .hero-about {
        min-height: 100vh;
        min-height: 100dvh;
        align-items: flex-start;
        padding: clamp(0.5rem, 1.5vh, 0.9rem) 1.25rem 2rem;
    }

    .hero-about-inner {
        transform: none;
    }

    .hero-visual {
        display: block;
        width: min(78vw, 320px);
        margin: 18px auto 0;
    }

    .hero-scroll-indicator {
        display: none;
    }
}


@media (min-width: 1500px) and (hover: hover) and (pointer: fine) {
    .hero-about-inner {
        transform: translateY(-150px);
    }

    .hero-scroll-indicator {
        position: fixed;
        left: 50%;
        bottom: 28px;
        transform: translateX(-50%);
        display: inline-flex;
    }
}
