:root {
    --color-bg: #050505;
    --color-text: #e0e0e0;
    --color-primary: #ff6b00;
    --color-primary-glow: rgba(255, 107, 0, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-desc: 'Poppins', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(10px)
    }

    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0)
    }
}

.animate-left {
    opacity: 0;
    animation: fadeInLeft 1s ease-out forwards
}

.delay-1 {
    animation-delay: 0.2s
}

.delay-2 {
    animation-delay: 0.4s
}

.delay-3 {
    animation-delay: 0.6s
}

.delay-4 {
    animation-delay: 0.8s
}

.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0)
}

body.ios-fallback .reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out
}

body.ios-fallback .reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0)
}

@supports (animation-timeline:view()) {
    @keyframes scrollFadeInOut {
        0% {
            opacity: 0;
            transform: perspective(1000px) scale(0.8) translateY(100px) rotateX(20deg);
            filter: blur(20px)
        }

        25% {
            opacity: 1;
            transform: perspective(1000px) scale(1) translateY(0) rotateX(0);
            filter: blur(0)
        }

        75% {
            opacity: 1;
            transform: perspective(1000px) scale(1) translateY(0) rotateX(0);
            filter: blur(0)
        }

        100% {
            opacity: 0;
            transform: perspective(1000px) scale(0.8) translateY(-100px) rotateX(-20deg);
            filter: blur(10px)
        }
    }

    .reveal-on-scroll {
        animation: scrollFadeInOut linear both;
        animation-timeline: view();
        animation-range: entry 0% exit 100%
    }
}

.video-composite {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.layer-tech {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 0.2;
    padding-left: 50px;
    transform: scale(1.35)
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(5, 5, 5, 0.95) 90%)
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border)
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px
}

.logo {
    display: flex;
    align-items: center;
    height: 100%
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
    text-decoration: none
}

.logo-sup {
    color: var(--color-primary);
    font-size: 0.8em
}

.nav-links {
    display: none;
    list-style: none;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border)
}

@media (min-width:768px) {
    .nav-links {
        display: flex;
        gap: 2rem
    }
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease
}

.nav-links a:hover {
    color: var(--color-primary)
}

.social-icons {
    display: flex;
    gap: 0.3rem;
    align-items: center
}

.social-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease
}

.social-btn:hover {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 15px var(--color-primary-glow)
}

.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 var(--spacing-md);
    overflow: hidden
}

.hero-content {
    position: relative;
    z-index: 5
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: rgba(255, 106, 0, 0.153);
    border: 1px solid rgba(255, 107, 0, 0.5);
    border-radius: 50px;
    color: #ff6b00;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.15);
    backdrop-filter: blur(5px);
    margin-bottom: 20px;
    margin-top: 25px
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 50px;
    color: #fff;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.8)
}

.text-gradient {
    background: linear-gradient(to right, #ff6b00, #ffb347, #ff6b00);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientMove 3s linear infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.8));
    text-shadow: none
}

@keyframes gradientMove {
    to {
        background-position: 200% center
    }
}

.highlight-gradient {
    background: linear-gradient(45deg, #ff6b00, #ff9e5e, #ff6b00);
    background-size: 200% auto;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: gradientMove 3s linear infinite
}

.btn-global:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: #ff6b00;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4)
}

.hero-description {
    font-family: var(--font-desc);
    font-size: 1.0rem;
    max-width: 600px;
    margin: 0 auto 60px auto;
    color: #fff;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.8)
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 55px;
    border: 2px solid #ff6b00;
    border-radius: 30px;
    z-index: 10;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards 1.5s
}

.scroll-down::before,
.scroll-down::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ff6b00;
    border-bottom: 2px solid #ff6b00;
    transform: translateX(-50%) rotate(45deg);
    animation: scrollAnim 2s infinite
}

.scroll-down::before {
    top: 10px;
    animation-delay: 0s
}

.scroll-down::after {
    top: 22px;
    animation-delay: 0.2s
}

@keyframes scrollAnim {
    0% {
        opacity: 0;
        top: 10px
    }

    50% {
        opacity: 1
    }

    100% {
        opacity: 0;
        top: 35px
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px)
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0)
    }
}

#info-section {
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
    z-index: 20
}

.section-title {
    font-family: var(--font-main);
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    color: #fff;
    letter-spacing: -1px
}

.footer-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 60px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px
}

.bento-grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto
}

.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

.bento-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5)
}

.bento-card h3,
.bento-card p {
    position: relative;
    z-index: 2
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 500
}

.bento-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-desc)
}

.bento-img {
    position: relative;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    transition: transform 0.5s ease;
    mix-blend-mode: normal;
    display: block;
    margin-bottom: 20px
}

.bento-card:hover .bento-img {
    transform: scale(1.05)
}

.img-brain {
    height: 130px;
    width: auto;
    align-self: center;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.2))
}

.bento-card:hover .img-brain {
    transform: scale(1.1) rotate(5deg)
}

.img-net {
    height: 180px;
    width: auto;
    align-self: center;
    margin-bottom: 25px
}

.bento-card:hover .img-net {
    transform: scale(1.1)
}

.img-results {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), transparent);
    opacity: 0.8;
    mix-blend-mode: normal
}

.card-icon,
.tech-stack-icons,
.card-abstract-bg {
    display: none
}

.card-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    mix-blend-mode: screen;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 0;
    pointer-events: none
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1
}

.card-content-overlay {
    position: relative;
    z-index: 2
}

.card-content-relative {
    position: relative;
    z-index: 1
}

#solutions {
    padding: 50px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto
}

.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 60px
}

#skills {
    padding: 20px 0 20px 0;
    width: 100%;
    position: relative;
    margin: auto
}

.solution-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px
}

.solution-video {
    flex: 0 0 50%;
    width: 50%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

.solution-video:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.4)
}

.solution-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
    animation: pulseIcon 1s infinite
}

.video-overlay i {
    font-size: 24px;
    color: #fff
}

.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 5;
    pointer-events: none
}

.video-progress-fill {
    height: 100%;
    background: #ff6b00;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.7)
}

@keyframes pulseIcon {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4)
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0)
    }
}

.solution-content h3 {
    text-align: left;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500
}

.solution-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 35px;
    font-family: var(--font-desc)
}

.solution-content {
    flex: 1;
    text-align: left
}

.btn-global {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, rgba(255, 106, 0, 0.15), rgba(255, 179, 71, 0.25), rgba(255, 106, 0, 0.15));
    background-size: 200% auto;
    border: 1px solid rgba(255, 107, 0, 0.5);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: gradientMove 3s linear infinite;
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px)
}

.btn-global:hover {
    background: linear-gradient(45deg, rgba(255, 106, 0, 0.3), rgba(255, 179, 71, 0.4), rgba(255, 106, 0, 0.3));
    background-size: 200% auto;
    border-color: #ff6b00;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4)
}

@media (max-width:1023px) {
    .solutions-list {
        gap: 60px
    }

    .solution-item {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 0
    }

    .solution-video,
    .solution-content {
        width: 100%
    }

    .solution-video {
        aspect-ratio: 16/9
    }

    .solution-content {
        align-items: center;
        text-align: center
    }

    .solution-content h3 {
        text-align: center
    }
}

#testimonials {
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative
}

#testimonials .video-container {
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    border: none;
    box-shadow: none;
    border-radius: 20px
}

#testimonials .solution-video {
    width: 100%;
    flex: none;
    aspect-ratio: 9/16;
    box-shadow: 0 0 50px rgba(255, 107, 0, 0.3)
}

#skills {
    padding: 120px 0 40px 0;
    width: 100%;
    position: relative
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 10px auto 0 auto
}

.glass-card {
    background: transparent;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    transition: transform 0.3s ease
}

.glass-card:hover {
    border-color: #ff6b00;
    transform: translateY(-5px)
}

.brain-card {
    padding: 0;
    margin-top: -30px;
    overflow: hidden;
    border-color: rgba(255, 107, 0, 0.4)
}

.brain-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    animation: neuralPulse 2s ease-in-out infinite;
    transform: scale(1.1)
}

.vender-card {
    margin-top: -50px
}

.glass-card h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px
}

.glass-card p {
    color: #a0a0a0;
    font-size: 1.1rem
}

@media (max-width:1024px) {
    .skills-grid {
        grid-template-columns: 1fr;
        width: 90%;
        margin-top: 10px
    }

    .glass-card {
        min-height: 250px
    }

    #solutions {
        padding-bottom: 30px !important
    }

    #skills {
        padding-top: 0 !important
    }

    #skills .section-title {
        margin-bottom: 5px;
        margin-top: 25px
    }
}

@keyframes floatBrain {

    0%,
    100% {
        transform: scale(1.4) translateY(0)
    }

    50% {
        transform: scale(1.4) translateY(-10px)
    }
}

#footer {
    background: transparent;
    border-top: none;
    backdrop-filter: none;
    padding: 20px 20px 30px;
    margin-top: 10px;
    position: relative;
    text-align: center
}

.footer-title {
    font-family: var(--font-main);
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 60px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px
}

.footer-contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 80px;
    gap: 100px;
    flex-wrap: wrap;
    text-align: center
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    flex: 1;
    min-width: 280px
}

.footer-logo {
    height: 60px;
    margin-bottom: 10px
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.contact-info p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 15px
}

.contact-info i {
    color: #ff6b00;
    font-size: 1.5rem
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s
}

.social-icons a:hover {
    color: #ff6b00;
    transform: translateY(-3px)
}

.footer-right {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 280px;
    padding-top: 20px;
    margin-top: -50px
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4)
}

.back-to-top {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s
}

.back-to-top:hover {
    background: #ff6b00
}

@media (max-width:768px) {
    .footer-contact-section {
        flex-direction: column;
        text-align: center;
        gap: 40px
    }

    .footer-left {
        align-items: center
    }

    .contact-info p {
        justify-content: center
    }

    .social-icons {
        justify-content: center
    }

    .footer-right {
        width: 100%;
        justify-content: center
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center
    }
}

@media (min-width:1024px) {
    .hero-title {
        font-size: 4rem
    }

    .hero-description {
        font-size: 1.25rem
    }

    .layer-tech {
        transform: scale(1)
    }

    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(250px, auto)
    }

    .card-tall {
        grid-row: span 2
    }

    .card-wide {
        grid-column: span 2
    }
}

@keyframes neuralPulse {
    0% {
        transform: scale(1.1);
        filter: brightness(1) drop-shadow(0 0 0 rgba(255, 107, 0, 0))
    }

    50% {
        transform: scale(1.15);
        filter: brightness(1.3) drop-shadow(0 0 25px rgba(255, 107, 0, 0.5))
    }

    100% {
        transform: scale(1.1);
        filter: brightness(1) drop-shadow(0 0 0 rgba(255, 107, 0, 0))
    }
}