/* --- ENTRY ANIMATION CLASSES --- */
.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), 
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-item.show-item {
    opacity: 1;
    transform: translateY(0);
}

/* --- BASE PAGE STYLING --- */
/* Base page styling for deep dark aesthetic */
body {
    background-color: #050505;
    margin: 0;
    padding: 0;
    color: #ffffff;
}

/* Centered immersive section with subtle central glow */
.group-company-wrapper {
    background: radial-gradient(circle at center 35%, rgba(30, 20, 22, 1) 0%, rgba(5, 5, 5, 1) 70%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px 20px;
}

/* Container to constrain width for perfect readability */
.company-content {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Label: JCE Group companies (Reduced Font Size) */
.group-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem; /* Scaled down */
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8892b0;
    margin-bottom: 35px;
    position: relative;
}

.group-label::before,
.group-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35px;
    height: 1px;
    background-color: #334155;
}
.group-label::before { left: -50px; }
.group-label::after { right: -50px; }

/* Top Logo (Reduced Size) */
.company-logo {
    max-width: 200px; /* Reduced from 280px */
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
}

/* Title matching the logo's technical font (Reduced Font Size) */
.company-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem); /* Scaled down */
    font-weight: 500; 
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.company-title span {
    color: #a11f26;
    font-weight: 700;
}

/* Paragraph formatting (Reduced Font Size) */
.company-description-wrapper {
    margin-bottom: 40px;
}

.company-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; /* Scaled down from 1.05rem */
    line-height: 1.8;
    color: #a8b2d1;
    margin-bottom: 18px;
    font-weight: 300;
    text-align: justify;
    text-align-last: center;
}

.company-description strong {
    color: #ffffff;
    font-weight: 500;
}

/* Animated Button Styling (Reduced Font and Padding) */
.visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px; /* Slightly tighter padding */
    background: transparent;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem; /* Scaled down from 1rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 2px solid #a11f26;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

/* Button Hover Fill Animation */
.visit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #a11f26;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.visit-btn:hover::before {
    width: 100%;
}

.visit-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(161, 31, 38, 0.4);
    border-color: #a11f26;
}

.visit-btn i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.visit-btn:hover i {
    transform: translateX(5px);
}
