/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes backgroundMove {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

/* Main Sections */
.homebody {
    animation: fadeIn 1s ease-in;
}

/* Showcase Section */
.showcase-container {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    padding: 90px 20px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.showcase-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.1;
    animation: backgroundMove 20s linear infinite;
}

.showcase {
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    position: relative;
    z-index: 1;
}

.showcase-data {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    animation: slideIn 1s ease-out;
    line-height: 1.2;
}

@keyframes slideIn {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.our-products-folder {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.our-products {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.our-products::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: #fff;
}

.our-products-folder ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 0;
}

.our-products-folder li {
    list-style: none;
    padding: 10px;
    transition: all 0.3s ease;
}

.our-products-folder span {
    position: relative;
    padding-left: 20px;
    color: #fff;
    font-size: 1.1rem;
}

.our-products-folder span::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: 0.3s;
}

.our-products-folder li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
}

.our-products-folder li:hover span::before {
    opacity: 1;
}

.content-container {
    padding: 6rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.content-heading {
    font-size: 3rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.content-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 2px;
}

@media screen and (max-width: 768px) {
    .content-heading {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
}

.paras-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.paras-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.paras {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.name-span {
    color: #1a237e;
    font-weight: 700;
    font-size: 1.3rem;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 5rem;
    background: linear-gradient(135deg, #f1f4f9, #dff1ff);
}

.video-head {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 600px;
    transform-origin: center center;
}

video {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.video-desc {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.video-head:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 1;
}

.video-head:hover .video-desc {
    opacity: 0;
    display: none;
}

.product-container {
    padding: 5rem;
    background: #fff;
}

.product-class {
    display: flex;
    align-items: stretch;
    margin-bottom: 4rem;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 500px;
}

.product-class:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.desc-image {
    width: 50%;
    height: 500px;
    min-height: 500px;
    object-fit: cover;
}

.desc-details {
    width: 50%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.desc-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 2rem;
    position: relative;
}

.desc-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border-radius: 2px;
}

.desc {
    color: #555;
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
}

.desc:hover {
    background: rgba(26, 35, 126, 0.1);
    color: #1a237e;
    transform: translateX(10px);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .showcase-data {
        font-size: 25px;
        font-weight: 700;
        margin-bottom: 40px;
        animation: slideIn 1s ease-out;
        line-height: 1.2;
    }

    .content-container {
        padding: 3rem 1.5rem;
    }

    .content-heading {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .product-container {
        padding: 20px;
    }
    
    .product-class {
        flex-direction: column;
        height: auto;
    }
    
    .desc-image {
        display: none;
    }
    
    .desc-details {
        width: 100%;
        padding: 2rem;
        min-height: 400px;
    }
    
    .desc-heading {
        font-size: 2rem;
        text-align: center;
    }
    
    .desc-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .desc {
        text-align: center;
        padding: 1rem;
    }
    
    .desc:hover {
        transform: translateY(-5px);
    }

    .video-container {
        padding: 2rem;
    }

    /* Popup Responsive Styles */
    .popup-content {
        width: 95%;
        margin: 10px;
    }

    .popup-pages {
        flex-direction: column;
        min-height: auto;
    }

    .page {
        padding: 20px;
    }

    .left-page {
        max-height: 300px;
    }

    .popup-image {
        height: 250px;
        object-fit: contain;
    }

    .right-page {
        padding: 30px 20px;
    }

    .popup-title {
        font-size: 2rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .popup-description {
        font-size: 1rem;
        text-align: center;
    }

    .popup-close {
        top: 10px;
        right: 10px;
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.active {
    visibility: visible;
    background: rgba(0, 0, 0, 0.8);
}

.popup-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-pages {
    display: flex;
    min-height: 500px;
    transform-style: preserve-3d;
}

.page {
    flex: 1;
    padding: 40px;
    backface-visibility: hidden;
    transition: transform 0.5s ease;
}

.left-page {
    background: #f8f9fa;
    transform-origin: right center;
}

.right-page {
    background: #fff;
    transform-origin: left center;
}

.popup-overlay:not(.active) .popup-content {
    transform: scale(0.7) rotateY(90deg);
    opacity: 0;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.popup-pages {
    display: flex;
    min-height: 500px;
}

.page {
    flex: 1;
    padding: 40px;
}

.left-page {
    background: #f8f9fa;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.right-page {
    padding: 60px 40px;
}

.popup-title {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 30px;
}

.popup-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}