/* Company Info Page Specific Styles */
.company-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0 3rem 0;
    text-align: center;
}

.company-header h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 1rem auto;
    border-radius: 2px;
}

.company-section {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    scroll-margin-top: 100px;
}

.company-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.section-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.section-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.company-section:hover .section-icon::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.section-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.section-content p {
    margin-bottom: 1.5rem;
}

.company-info-table {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.info-row {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 120px;
    margin-right: 2rem;
    flex-shrink: 0;
}

.info-value {
    color: var(--text-color);
    flex: 1;
}

.history-timeline {
    position: relative;
    padding-left: 2rem;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.history-item {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.history-event {
    color: var(--text-color);
    line-height: 1.6;
}

/* Fixed height for greeting section to prevent layout shift during typewriter effect */
#greeting .section-content {
    min-height: 600px;
}

#greeting .section-content p {
    min-height: 1.8em; /* Reserve space for each paragraph */
}

.greeting-signature {
    text-align: right;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.signature-title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.signature-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Navigation between sections */
.company-nav {
    position: static;
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.company-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.company-nav .nav-link:hover,
.company-nav .nav-link.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Carousel Gallery Styles */
.atmosphere-gallery {
    margin: 2rem 0;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease;
    background: white;
    display: flex;
    flex-direction: column;
}

.gallery-item.active {
    opacity: 1;
    transform: translateX(0);
}

.gallery-item.prev {
    transform: translateX(-100%);
}

.gallery-image {
    flex: 1;
    width: 100%;
    height: 70%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-caption {
    flex: 0 0 30%;
    padding: 2rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.gallery-caption h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.gallery-caption p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Navigation arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-left {
    left: 20px;
}

.gallery-arrow-right {
    right: 20px;
}

/* Navigation dots */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: var(--secondary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .company-header {
        padding: 3rem 0 2rem 0;
    }
    
    .company-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-label {
        margin-right: 0;
        margin-bottom: 0.5rem;
        min-width: auto;
    }
    
    .company-info-table {
        padding: 1.5rem;
    }
    
    .history-timeline {
        padding-left: 1.5rem;
    }
    
    .history-timeline::before {
        left: 10px;
    }
    
    .history-item::before {
        left: -18px;
        width: 12px;
        height: 12px;
    }
    
    .greeting-signature {
        text-align: center;
        padding: 1.5rem;
    }
    
    .company-nav {
        position: static;
        padding: 0.5rem 0;
    }
    
    .company-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
        display: inline-block;
    }
    
    .gallery-container {
        height: 400px;
    }
    
    .gallery-caption {
        padding: 1.5rem;
    }
    
    .gallery-caption h5 {
        font-size: 1.2rem;
    }
    
    .gallery-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .company-section {
        padding: 1.5rem 1rem;
    }
    
    .company-info-table {
        padding: 1rem;
    }
    
    .gallery-container {
        height: 350px;
    }
    
    .gallery-caption {
        padding: 1rem;
    }
    
    .gallery-caption h5 {
        font-size: 1.1rem;
    }
    
    .gallery-caption p {
        font-size: 0.85rem;
    }
}
