/* About Page Specific Styles */

/* Hero Section */
.about-hero {
    background-color: #141414;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.about-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Mission Section */
.mission-section {
    margin: -40px auto 60px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.mission-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border-top: 5px solid var(--cfn-green);
}

.mission-card h2 {
    font-size: 2rem;
    color: var(--npt-black);
    margin-bottom: 20px;
}

.mission-card p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
}

/* History Grid */
.history-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
    align-items: flex-start;
}

.history-col {
    flex: 1;
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-col.glass-card {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(226, 232, 240, 0.6);
}

.history-col.glass-card:hover {
    box-shadow: var(--glow-green-hover),
                0 2px 0 0 rgba(255,255,255,0.9) inset;
    transform: translateY(-4px);
}

/* Updated .col-icon to remove circle styling */
.col-icon {
    /* Removed background, border-radius, box-shadow, width, height */
    background: transparent;
    width: auto;
    height: auto;
    margin-bottom: 25px;
    display: block; /* Allows simple image placement */
}

/* Ensure logos look good */
.col-icon img {
    height: 70px; /* Consistent height for both logos */
    width: auto;  /* Maintain aspect ratio */
    object-fit: contain;
    display: block;
}

/* Hover effect specifically for the NPTech logo link */
.col-icon a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.col-icon a:hover {
    transform: scale(1.05);
}

.history-col h3 {
    font-size: 1.5rem;
    color: var(--npt-black);
    margin-bottom: 20px;
    font-weight: 700;
}

.history-content p {
    color: #475569;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #334155;
    font-weight: 600;
}

.feature-list li i {
    color: var(--cfn-green);
}

.locations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.locations-tags span {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--cfn-dark-green);
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

/* Call to Action */
.cta-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(to right, #f0fdf4, #fff);
    border-radius: 16px;
    margin-bottom: 60px;
}

.cta-section h2 {
    font-size: 2.2rem;
    color: var(--npt-black);
    margin-bottom: 15px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}


/* --- Team Section --- */
.team-section {
    margin-bottom: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    /* Hidden by default via JS, but good to have a transition state */
    transition: opacity 0.3s ease;
}

.employee-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.employee-card:hover {
    transform: translateY(-5px);
}

.employee-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-info h3 {
    margin: 0;
    color: var(--npt-black);
    font-size: 1.2rem;
}

.employee-title {
    color: var(--cfn-green);
    font-weight: 600;
    margin: 5px 0 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.employee-stats {
    margin-bottom: 15px;
}

.years-badge {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}

.employee-fact {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.5;
}

/* Mirror Effect for "You" Card */
.mirror-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    overflow: hidden; 
    position: relative;
}

.mirror-effect {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Simulate a shiny surface */
    box-shadow: inset 0 0 20px rgba(255,255,255,0.8), 0 5px 15px rgba(0,0,0,0.1);
    /* No transition on the main container itself needed for the shine pos */
}

/* Scroll-Linked Shine */
.mirror-effect::before {
    content: "";
    position: absolute;
    top: 0; 
    /* Use the CSS variable set by JS, default to off-screen */
    left: var(--shine-pos, -100%); 
    width: 60%; 
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
    /* Important: No transition here, or it will lag behind the scroll */
}

.mirror-effect::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.4) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.4) 100%);
    border-radius: 50%;
}

.mirror-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #94a3b8;
    text-shadow: 1px 1px 0 white;
    z-index: 2; 
}

/* Team Toggle Button */
.team-toggle-btn {
    display: block; 
    margin: 0 auto 40px; 
    padding: 16px 40px; 
    background: white; 
    border: 2px solid var(--npt-black); 
    border-radius: 50px; 
    font-weight: 800; 
    font-size: 1.1rem; 
    color: var(--npt-black); 
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-family: var(--font-heading); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-toggle-btn:hover {
    background: var(--npt-black);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.team-toggle-btn i {
    transition: transform 0.3s ease;
}

.team-toggle-btn:hover i {
    transform: translateY(2px);
}

/* Responsive */
@media (max-width: 800px) {
    .history-grid { flex-direction: column; }
    .hero-content h1 { font-size: 2.2rem; }
}


/* --- NEW: Heritage Gallery Slideshow Styles --- */
.heritage-gallery-section {
    padding: 60px 20px;
    background-color: #f8fafc; /* Subtle background difference */
    border-radius: 16px;
    margin-bottom: 80px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-intro h2 {
    color: var(--npt-black);
    margin-bottom: 15px;
    font-size: 2rem;
    font-family: var(--font-heading);
}

.gallery-intro p {
    color: #475569;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: #111; /* Dark background for photos */
}

/* Images */
.mySlides {
    display: none;
    text-align: center;
    height: 550px; /* Fixed height container */
    background-color: #000;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole photo is visible without cropping */
}

/* Caption Text */
.caption-text {
    color: #f2f2f2;
    font-size: 16px;
    padding: 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    font-family: var(--font-body);
    backdrop-filter: blur(5px);
}

/* Number Text (1/7) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.6);
    border-bottom-right-radius: 8px;
    font-family: var(--font-body);
}

/* Navigation Buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    color: var(--cfn-green);
}

/* Dots */
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--cfn-green);
    transform: scale(1.2);
}

/* Fade Animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Slideshow Responsive */
@media (max-width: 768px) {
    .mySlides {
        height: 350px;
    }
    .prev, .next {
        padding: 12px;
        font-size: 16px;
    }
}