/*
 * Variables defined here alias the canonical variables from variables.css & global-variables.css.
 * Do NOT add new color variables here — add them to assets/css/variables.css instead.
 */
:root {
    /* Aliases for backward compatibility in this file */
    --primary:       var(--ast-global-color-0, #9C0002);
    --primary-dark:  #7a0001;
    --primary-light: rgba(156, 0, 2, 0.6);
    --dark:          #1a1a1a;
    --gray:          #333;
    --light:         #f5f7fa;
    --white:         #ffffff;
    --thk:           clamp(4px, 0.5vw, 7px) solid transparent;
    --offcet:        clamp(18px, 1.6vw, 22px);
    --content-padding: calc(2.1 * var(--offcet));
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
    background-color: var(--white);
    text-align: justify;
}

.container {
    width: 100%;
    max-width: var(--esp-max-width);
    margin: 0 auto;
}

/* Typography Classes */
.ph {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

.pt {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    color: var(--gray);
    line-height: 1.6;
    text-align: justify !important;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1.5rem 0;
    background: var(--white);
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb span {
    color: var(--gray);
}

.breadcrumb-separator {
    color: #6c757d;
    margin: 0 0.5rem;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title .ph {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title .ph:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 5px;
    background: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title .pt {
    max-width: 700px;
    margin: 2rem auto 0;
    font-size: 1.1rem;
}

/* Animated Frame Cards */
.frame-card {
    position: relative;
    padding: var(--content-padding);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Industry Overview Special Layout */
.industry-overview {
    margin-bottom: 4rem;
    position: relative;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.overview-content .ph {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.overview-content .pt {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.overview-image-container {
    position: relative;
    height: 400px;
    cursor: pointer;
}

.image-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(156, 0, 2, 0.2);
    z-index: 1;
    transition: all 0.4s ease;
}

.overview-image-container:hover .image-background {
    background: rgba(156, 0, 2, 0.4);
}

.frame-image {
    position: absolute;
    top: calc(-1 * var(--offcet));
    right: calc(1 * var(--offcet));
    bottom: calc(1 * var(--offcet));
    left: calc(-1 * var(--offcet));
    overflow: hidden;
    z-index: 2;
    transition: all 0.4s ease-in-out;
}

/* Border Layer - Separate from image */
.border-layer {
    position: absolute;
    top: calc(-1 * var(--offcet));
    right: calc(-1 * var(--offcet));
    bottom: calc(-1 * var(--offcet));
    left: calc(-1 * var(--offcet));
    z-index: 3;
    pointer-events: none;
}

.border-layer::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    top: var(--offcet);
    left: var(--offcet);
    border-top: var(--thk);
    border-left: var(--thk);
    transition-delay: 0.1s;
}

.border-layer.animated::before {
    width: calc(100% - (2 * var(--offcet)));
    height: calc(100% - (2 * var(--offcet)));
    border-top-color: var(--primary);
    border-left-color: var(--primary-light);
}

.frame-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.8s ease;
}

.frame-image.animated img {
    transform: scale(1);
}

.frame-image:hover img {
    transform: scale(1.2);
}

.overview-image-container:hover .frame-image {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-dark);
    transition: height 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    height: 100%;
}

.btn:hover {
    transform: translateY(0px);
    box-shadow: 0 5px 15px rgba(156, 0, 2, 0.3);
    color: var(--white);
}

.btn-expert {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    margin-top: 1rem;
}

.btn-expert:hover {
    background: var(--primary);
    color: var(--white);
}

/* Products Section */
.product-fullwidth {
    background: white;
    padding: 3rem;
    margin-top: 0rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.product-image-side {
    height: 300px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    display: flex;
    flex-direction: column;
}

.product-fullwidth .ph {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style-type: none;
    margin: 1.5rem 0;
    columns: 2;
    gap: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    font-weight: 500;
    position: relative;
    padding-left: 1.5rem;
    break-inside: avoid;
}

.product-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.product-specs {
    background: #f8f9fa;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-specs h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-name {
    color: var(--gray);
    font-weight: 500;
}

.spec-value {
    color: var(--dark);
    font-weight: 600;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    text-align: center;
    padding: 3rem 2rem;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(156, 0, 2, 0.05) 0%, rgba(156, 0, 2, 0.15) 100%);
    transition: height 0.4s ease;
    z-index: 0;
}

.service-item:hover::before {
    height: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item:hover .service-icon {
    transform: scale(1.2);
}

.service-item .ph {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-item:hover .ph {
    color: var(--primary);
}

.service-item .pt {
    position: relative;
    z-index: 1;
}

/* Contact Section */
.cta-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    left: 0;
    background: repeating-linear-gradient(-45deg,
            #fff,
            #fff 10px,
            #E3EAED 10px,
            #E3EAED 20px);
    padding: 10% 2% 5% 2%;
    margin: 0;
    z-index: 1;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 1) 10%,
            rgba(255, 255, 255, 0) 90%);
    z-index: 2;
}

.cta-section {
    position: relative;
    text-align: center;
    width: clamp(200px, 80vw, 800px);
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px) saturate(100%);
    -webkit-backdrop-filter: blur(3px) saturate(100%);
    box-shadow:
        0 8px 32px rgba(156, 0, 2, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    overflow: hidden;
    isolation: isolate;
    z-index: 3;
    max-width: 90%;
    margin: 0 auto;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    z-index: -1;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.cta-content p {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* CTA Button */
.cta-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    display: inline-block;
    background: linear-gradient(45deg, #9C0002, #B80C10);
    color: white;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 25px rgba(156, 0, 2, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    text-decoration: none !important;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    top: 0;
}

.cta-btn-wrapper {
    display: inline-block;
    position: relative;
    padding: 0 0 1px 0;
    width: auto;
}

.cta-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(45deg, #ff0000, #ff4444);
    transition: height 0.4s ease;
    z-index: 0;
}

.cta-btn span {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 107, 107, 0.6);
    transition: all 0.3s ease;
}

.cta-btn-wrapper:hover .cta-btn {
    transform: translateY(-4px);
    box-shadow:
        0 5px 20px rgba(156, 0, 2, 0.8),
        0 0 60px rgba(255, 107, 107, 0.6),
        0 0 60px rgba(255, 0, 0, 0.3);
}

.cta-btn-wrapper:hover .cta-btn::before {
    height: 100%;
}

.cta-btn-wrapper:hover .cta-btn span {
    text-shadow:
        0 0 20px rgba(255, 255, 255, 1),
        0 0 40px rgba(255, 107, 107, 1),
        0 0 60px rgba(255, 0, 0, 0.8);
}

.cta-btn:active {
    transform: translateY(-2px);
    animation: clickWave 0.4s ease-out;
}

.cta-btn:active::before {
    background: linear-gradient(45deg, #ff0000, #ff4444);
}

@keyframes clickWave {
    0% {
        box-shadow:
            0 5px 20px rgba(156, 0, 2, 0.4),
            0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    50% {
        box-shadow:
            0 5px 20px rgba(156, 0, 2, 0.4),
            0 0 0 20px rgba(255, 107, 107, 0.4);
    }

    100% {
        box-shadow:
            0 5px 20px rgba(156, 0, 2, 0.4),
            0 0 0 40px rgba(255, 107, 107, 0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-grid {
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-title .ph {
        font-size: 2rem;
    }

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

    .overview-image-container {
        height: 300px;
    }

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

    .product-image-side {
        height: 250px;
    }

    .product-features {
        columns: 1;
    }

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

    .service-item {
        height: auto;
        min-height: 300px;
        padding: 2.5rem 1.5rem;
    }

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

    .cta-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .section-title .ph {
        font-size: 1.8rem;
    }

    .overview-content .ph {
        font-size: 1.6rem;
    }

    .product-fullwidth {
        padding: 1.5rem;
    }

    .product-fullwidth .ph {
        font-size: 1.5rem;
    }

    .service-item {
        padding: 2rem 1rem;
        min-height: 280px;
    }

    .service-icon {
        font-size: 3rem;
        height: 70px;
        margin-bottom: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }
}