/* Digital 365 Page Styles */

/* Hero Section */
.d365-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
    isolation: isolate;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.d365-chromatic-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.d365-chromatic-canvas canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
}

.d365-hero .hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}


.d365-hero-gradient::before,
.d365-hero-gradient::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    filter: blur(80px);
}

.d365-hero-gradient::before {
    top: 20%;
    left: 20%;
    background: transparent;
    animation: d365-red-move-1 18s ease-in-out infinite;
}

.d365-hero-gradient::after {
    top: 50%;
    left: 70%;
    background: transparent;
    animation: d365-red-move-2 18s ease-in-out infinite;
}

.d365-hero-red-layer {
    display: none;
}

@keyframes d365-gradient-flow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
    16.66% {
        transform: translate(-48%, -48%) rotate(3deg) scale(1.06);
    }
    33.33% {
        transform: translate(-52%, -52%) rotate(-3deg) scale(1.04);
    }
    50% {
        transform: translate(-49%, -51%) rotate(2deg) scale(1.05);
    }
    66.66% {
        transform: translate(-51%, -49%) rotate(-2deg) scale(1.03);
    }
    83.33% {
        transform: translate(-47%, -53%) rotate(4deg) scale(1.07);
    }
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

@keyframes d365-red-move-1 {
    0% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(15%, 20%) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(30%, 5%) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(-10%, -15%) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.6;
    }
}

@keyframes d365-red-move-2 {
    0% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(-20%, 10%) scale(1.3);
        opacity: 0.7;
    }
    50% {
        transform: translate(10%, -25%) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(25%, 15%) scale(1.15);
        opacity: 0.6;
    }
    100% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.5;
    }
}

@keyframes d365-red-move-3 {
    0% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(20%, -10%) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: translate(-15%, 20%) scale(0.85);
        opacity: 0.3;
    }
    100% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.4;
    }
}




.d365-hero-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

.d365-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    will-change: transform;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.d365-hero-logo {
    margin-bottom: 70px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.d365-hero-logo img {
    max-width: 320px;
    height: auto;
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(234, 51, 35, 0.3));
}

.d365-hero-title {
    font-size: clamp(30px, 3vw, 65px);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    line-height: 1;
    letter-spacing: -1.5px;
    text-shadow: 0 0 40px rgba(234, 51, 35, 0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
}

.d365-hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgb(234, 51, 35), transparent);
    animation: titleUnderline 1s ease-out 1.2s both;
}

@keyframes titleUnderline {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.d365-hero-subtitle {
    font-size: clamp(18px, 2.8vw, 26px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 64px;
    line-height: 1.7;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    letter-spacing: 0.3px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.d365-cta-button {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, rgb(234, 51, 35) 0%, rgb(200, 40, 28) 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(234, 51, 35, 0.3),
        0 0 0 1px rgba(234, 51, 35, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out 1s both;
}

.d365-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.d365-cta-button:hover::before {
    left: 100%;
}

.d365-cta-button:hover {
    background: linear-gradient(135deg, rgb(250, 60, 45) 0%, rgb(234, 51, 35) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(234, 51, 35, 0.4),
        0 0 0 1px rgba(234, 51, 35, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.d365-cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* Services Section */
.d365-services {
    padding: 120px 0;
    background: rgb(21, 20, 21);
}

.d365-section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -1px;
    will-change: transform;
}

.d365-section-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-color);
    text-align: center;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    will-change: transform;
}

.d365-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.d365-service-card {
    position: relative;
    background: transparent;
    padding: 40px;
    border-radius: 8px;
    border: none;
    will-change: transform;
    z-index: 0;
    transform-style: preserve-3d;
    transition: z-index 0s 0.3s;
}

.d365-service-card:hover {
    z-index: 10;
    transition: z-index 0s 0s;
}

.d365-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgb(21, 20, 21) 0%, rgb(25, 24, 25) 15%, rgb(35, 34, 35) 35%, rgb(40, 39, 40) 50%, rgb(35, 34, 35) 65%, rgb(25, 24, 25) 85%, rgb(21, 20, 21) 100%);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.d365-service-card:hover::before {
    opacity: 0.8;
}

.d365-service-card > * {
    position: relative;
    z-index: 1;
}

.d365-service-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 16px;
    line-height: 1.3;
}

.d365-service-description {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 24px;
}

.d365-service-link {
    color: rgb(234, 51, 35);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
}

/* Partners Section */
.d365-partners {
    padding: 120px 0;
    background: linear-gradient(180deg, rgb(21, 20, 21) 0%, rgb(25, 24, 25) 15%, rgb(35, 34, 35) 35%, rgb(40, 39, 40) 50%, rgb(35, 34, 35) 65%, rgb(25, 24, 25) 85%, rgb(21, 20, 21) 100%);
}

.d365-partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    flex-wrap: wrap;
    margin-top: -20px;
    padding: 40px 0;
}

.d365-partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    will-change: transform;
    padding: 20px;
}

.d365-partner-logo {
    max-width: 220px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

/* CTA Section */
.d365-cta-section {
    padding: 100px 0;
    background: var(--background-color);
    text-align: center;
}

.d365-cta-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 24px;
    letter-spacing: -1px;
    will-change: transform;
}

.d365-cta-text {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-color);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    will-change: transform;
}

.d365-cta-button {
    will-change: transform;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .d365-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .d365-partners-grid {
        gap: 60px;
    }
}

@media screen and (max-width: 768px) {
    .d365-hero-content {
        padding: 60px 24px;
    }

    .d365-hero-logo {
        margin-bottom: 50px;
    }

    .d365-hero-logo img {
        max-width: 220px;
    }

    .d365-hero-title {
        margin-bottom: 32px;
    }

    .d365-hero-subtitle {
        margin-bottom: 48px;
    }

    .d365-cta-button {
        padding: 16px 36px;
        font-size: 16px;
    }

    .d365-services {
        padding: 80px 0;
    }

    .d365-services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .d365-service-card {
        padding: 30px;
    }

    .d365-partners {
        padding: 80px 0;
    }

    .d365-partners-grid {
        flex-direction: column;
        gap: 40px;
    }

    .d365-partner-logo {
        max-width: 150px;
    }

    .d365-cta-section {
        padding: 80px 0;
    }

    .d365-cta-button {
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .d365-hero-content {
        padding: 40px 20px;
    }

    .d365-hero-logo img {
        max-width: 180px;
    }

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

    .d365-service-title {
        font-size: 20px;
    }
}

