/**
 * Bright Infosystem Website
 *
 * @file meet-the-founder-section.css
 * @description Styles for the "Meet the Founder" section with an enhanced, responsive photo glow effect.
 * @version 2.2 (Reverted to Rotating Ring Animation)
 */

.founder-section {
    padding: 100px 20px;
    /* Enhanced background with a subtle gradient */
}
.founder-container {
    max-width: 1100px;
    margin: 0 auto;
}
.founder-header {
    text-align: center;
    margin-bottom: 60px;
}
.founder-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
}
.founder-badge .badge-icon {
    width: 16px;
    height: 16px;
}
.founder-heading {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.3;
}
.founder-heading .gradient-text {
    background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-secondary-color) 50%, var(--accent-color) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.5s ease-in-out;
}
.founder-heading:hover .gradient-text {
    background-position: 100% 0%;
}

/* --- Founder Content Grid --- */
.founder-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}
.founder-photo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px; /* Match photo size */
    height: 300px; /* Match photo size */
    margin: 0 auto; /* Center in grid cell */
}

/* New Rotating Ring Border */
.founder-photo-wrapper::before {
    content: '';
    position: absolute;
    inset: -5px; /* Controls the distance and thickness of the border */
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary-color));
    animation: rotateGlow 4s linear infinite;
    z-index: 1;
}

.founder-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2; /* Sits on top of the rotating border */
    border: 5px solid var(--bg-color); /* Creates a gap between photo and ring */
    box-sizing: border-box;
}
.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* New Rotating Animation */
@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.founder-details {
    text-align: left;
}
.founder-bio {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0 0 30px 0;
}
.founder-quote {
    font-size: 22px;
    font-style: italic;
    color: var(--primary-color);
    margin: 0 0 40px 0; /* Increased bottom margin */
    padding: 20px;
    border-left: 3px solid var(--accent-color);
    position: relative;
    background: var(--divider-color);
    border-radius: 0 10px 10px 0;
}
.founder-quote::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 80px;
    color: var(--dark-divider-color);
    font-family: serif;
    line-height: 1;
    z-index: 1;
}
.founder-quote p {
    position: relative;
    z-index: 2;
}
.founder-signature {
    font-size: 18px;
    color: var(--text-color);
}
.signature-name {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}
.signature-title {
    font-weight: 400;
    color: var(--text-color);
}

/* Staggering animation delays */
.founder-header.is-visible { transition-delay: 0.1s; }
.founder-photo-wrapper.is-visible { transition-delay: 0.2s; }
.founder-bio.is-visible { transition-delay: 0.3s; }
.founder-quote.is-visible { transition-delay: 0.4s; }
.founder-signature.is-visible { transition-delay: 0.5s; }

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .founder-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .founder-details {
        text-align: center;
    }
    .founder-quote {
        border-left: none;
        border-top: 3px solid var(--accent-color);
        padding-left: 20px;
        padding-top: 20px;
        margin-top: 40px;
        border-radius: 10px;
    }
    .founder-quote::before {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
}
@media (max-width: 768px) {
    .founder-heading { 
        font-size: 32px;
    }
    .founder-photo-wrapper {
        width: 200px;
        height: 200px;
    }
}

