body {
    --primary-color: #d63241;
    --primary-light: rgba(214, 50, 65, 0.1);
    --primary-medium: rgba(214, 50, 65, 0.2);
    --primary-dark: #b02635;
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(214, 50, 65, 0.15);
    --icon-bg: rgba(214, 50, 65, 0.12);
    --shadow-color: rgba(214, 50, 65, 0.08);
}

body.b {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a4a4a4;
    --card-bg: #1c2136;
    --card-border: rgba(214, 50, 65, 0.25);
    --icon-bg: rgba(214, 50, 65, 0.15);
    --shadow-color: rgba(214, 50, 65, 0.12);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 20px 80px;
    background: linear-gradient(
        135deg,
        var(--primary-light) 0%,
        transparent 100%
    );
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        var(--primary-light) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-name {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.company-name .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.company-name .highlight::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.company-tagline {
    font-size: clamp(16px, 2.5vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-light),
        transparent
    );
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-color);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--text-secondary);
    font-weight: 600;
}

/* Services Grid */
.services-section {
    padding: 80px 20px;
    /* background: var(--bg-color); */
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
}

.services-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        var(--primary-light) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-color);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-title {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.service-tech {
    font-size: clamp(13px, 1.5vw, 15px);
    color: var(--text-secondary);
    font-weight: 500;
}

/* Features Section */
.card-section {
    position: relative;
    z-index: 1;
    padding: 120px 20px;
}

.card-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.cards-div {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.card-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    max-width: 60rem;
}

.cards-head {
    color: var(--text-primary);
    font-family: "Sora", sans-serif;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
}

.cards-head .highlight {
    color: var(--primary-color);
}

.card-subhead {
    color: var(--text-secondary);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
}

.cards_wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    position: relative;
}

.card {
    border-radius: 20px;
    width: 100%;
    min-height: 28rem;
    display: flex;
    position: sticky;
    top: 10%;
    overflow: hidden;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px var(--shadow-color);
    border-color: var(--primary-color);
}

.div-block {
    flex: 1;
    display: flex;
    flex-direction: row;
}

.card_content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px;
    flex: 1;
    min-width: 0;
}

.ai-model-img {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-model {
    background: var(--icon-bg);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    padding: 12px;
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.ai-model:hover {
    background: var(--primary-medium);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.ai-model img,
.ai-model svg {
    width: 26px;
    height: 26px;
}

.card-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-content-head {
    color: var(--text-primary);
    font-family: "Sora", sans-serif;
    font-size: clamp(20px, 3vw, 32px);
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
}

.card-content-subhead {
    color: var(--text-secondary);
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.6;
}

.card-content-pointers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-pointer-1 {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.card-pointer-1:hover {
    background: var(--primary-light);
}

.pointer-check {
    background: var(--primary-color);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.pointer-check svg {
    width: 16px;
    height: 16px;
}

.text-block-2 {
    color: var(--text-primary);
    font-size: clamp(13px, 1.5vw, 16px);
    line-height: 1.5;
    flex: 1;
}

.div-video-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-top: 40px;
}

.card-video-div {
    background: var(--primary-light);
    border: 2px solid var(--card-border);
    border-top-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 8px;
    flex: 1;
    align-self: stretch;
    display: flex;
}

.div-video-continer {
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
    flex: 1;
    display: flex;
    overflow: hidden;
    background: var(--bg-color);
}

.div-video-continer video,
.div-video-continer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 20px 60px;
    }

    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .card-container {
        padding: 0 20px;
    }

    .div-block {
        flex-direction: column;
    }

    .card_content {
        padding: 30px 20px;
    }

    .div-video-wrapper {
        padding-top: 0;
        min-height: 300px;
    }

    .card {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 15px 40px;
    }

    .stats-container {
        margin-top: 40px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .services-section {
        padding: 60px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .card-section {
        padding: 80px 15px;
    }

    .card-container {
        padding: 0 15px;
    }

    .card_content {
        padding: 24px 16px;
        gap: 24px;
    }

    .cards_wrapper {
        gap: 24px;
    }

    .card-content-pointers {
        gap: 12px;
    }

    .ai-model {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    .ai-model img,
    .ai-model svg {
        width: 22px;
        height: 22px;
    }

    .div-video-wrapper {
        min-height: 250px;
    }

    .card-pointer-1 {
        padding: 8px;
    }

    .pointer-check {
        width: 24px;
        height: 24px;
        padding: 5px;
    }
}

@media (max-width: 479px) {
    .hero-section {
        padding: 50px 10px 30px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .card-section {
        padding: 60px 10px;
    }

    .card_content {
        padding: 20px 12px;
        gap: 20px;
    }

    .card-content-pointers {
        gap: 10px;
    }

    .pointer-check {
        width: 22px;
        height: 22px;
    }

    .div-video-wrapper {
        min-height: 200px;
    }
}
