/* Leadership Styles - Advanced Interactive Design */

/* ========================================
   ADVANCED ANIMATIONS & VARIABLES
========================================== */

:root {
    --gold: #D0B96D;
    --gold-light: #e6c980;
    --dark: #292B2B;
    --dark-light: #3a3c3c;
    --white: #FFFFFF;
    --transition-smooth: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-glow: 0 0 40px rgba(208, 185, 109, 0.3);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(208, 185, 109, 0.3); }
    50% { box-shadow: 0 0 40px rgba(208, 185, 109, 0.6); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Page Loading States - Fixed */
body {
    opacity: 1;
    animation: fadeInUp 1s ease-out forwards;
}

body.page-loading {
    opacity: 0.8;
    pointer-events: none;
}

.page-loading * {
    animation-play-state: paused;
}

/* ========================================
   LEADERSHIP HERO SECTION
========================================== */

.leadership-hero {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1c1c 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Floating Particles Animation */
.leadership-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(208, 185, 109, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(208, 185, 109, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(208, 185, 109, 0.06) 1px, transparent 1px);
    background-size: 200px 200px, 300px 300px, 150px 150px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 4;
}

.leadership-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background: url('images/Security-guard-in-uniform.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        var(--dark) 0%, 
        var(--dark) 30%, 
        rgba(41, 43, 43, 0.9) 50%, 
        rgba(41, 43, 43, 0.7) 70%, 
        transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
    padding: 60px 0;
}

.section-tag {
    display: inline-block;
    background: rgba(208, 185, 109, 0.1);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(208, 185, 109, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.section-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.section-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: rgba(208, 185, 109, 0.15);
}

.section-tag:hover::before {
    left: 100%;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.text-gold {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.text-gold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    animation: expandWidth 2s ease-out 1.5s forwards;
}

@keyframes expandWidth {
    to { width: 100%; }
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--white);
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* ========================================
   MANAGING DIRECTOR SECTION
========================================== */

.managing-director {
    background: #FFFFFF;
    padding: 100px 0;
    position: relative;
}

.managing-director::before {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    width: 200px;
    height: 200px;
    background: url('images/Armed_security_guard_in_black_uniform_1.png') center/cover;
    opacity: 0.05;
    z-index: 1;
    border-radius: 50%;
}

.md-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(41, 43, 43, 0.1);
    padding: 40px;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    opacity: 1;
    transform: translateY(0);
}

.md-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.md-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 80px rgba(41, 43, 43, 0.15),
        0 0 0 1px rgba(208, 185, 109, 0.1);
}

.md-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(208, 185, 109, 0.02));
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.md-card:hover::before {
    opacity: 1;
}

.md-image-section {
    position: relative;
}

.md-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--gold);
    transition: var(--transition-smooth);
}

.md-image:hover {
    transform: scale(1.05);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 0 5px rgba(208, 185, 109, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.md-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(208, 185, 109, 0.1) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.md-image:hover::before {
    opacity: 1;
}

.md-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.md-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #D0B96D 0%, #e6c980 100%);
    color: #292B2B;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.md-header {
    margin-bottom: 30px;
}

.md-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #292B2B;
    margin: 0 0 10px;
}

.md-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #D0B96D;
    margin: 0 0 5px;
}

.md-company {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #666666;
    margin: 0;
}

.md-bio {
    color: #292B2B;
}

.md-bio > p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 30px;
}

.md-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(208, 185, 109, 0.05);
    border-radius: 10px;
    border-left: 4px solid #D0B96D;
}

.highlight-item i {
    color: #D0B96D;
    font-size: 18px;
    flex-shrink: 0;
}

.highlight-item span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #292B2B;
}

.md-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #D0B96D;
    margin-bottom: 30px;
}

.md-quote p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: #292B2B;
    margin: 0;
    line-height: 1.6;
}

.md-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(208, 185, 109, 0.1);
    color: #D0B96D;
    border: 1px solid rgba(208, 185, 109, 0.3);
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #D0B96D;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(208, 185, 109, 0.3);
}

/* ========================================
   OPERATIONS TEAM SECTION
========================================== */

.operations-team {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #292B2B;
    margin: 20px 0;
    line-height: 1.2;
}

.section-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(41, 43, 43, 0.08);
    padding: 30px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(208, 185, 109, 0.1);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.team-member.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(41, 43, 43, 0.15),
        0 0 0 2px rgba(208, 185, 109, 0.2);
    border-color: rgba(208, 185, 109, 0.4);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(208, 185, 109, 0.05), transparent);
    transition: left 0.8s ease;
}

.team-member:hover::before {
    left: 100%;
}

.team-member::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: left;
}

.team-member:hover::after {
    transform: scaleX(1);
}

.member-header {
    text-align: center;
    margin-bottom: 25px;
}

.role-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--white);
    position: relative;
    transition: var(--transition-bounce);
    animation: float 3s ease-in-out infinite;
}

.role-icon:hover {
    transform: scale(1.1) rotate(360deg);
    animation-play-state: paused;
}

.role-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.team-member:hover .role-icon::before {
    opacity: 1;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.role-icon.admin {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.role-icon.operations {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.role-icon.tech {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.member-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #292B2B;
    margin: 0 0 8px;
}

.member-role {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #D0B96D;
    margin: 0 0 5px;
}

.member-department {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666666;
    margin: 0;
}

.member-content {
    text-align: left;
}

.member-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #292B2B;
    line-height: 1.6;
    margin-bottom: 20px;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill-tag {
    background: rgba(208, 185, 109, 0.1);
    color: #D0B96D;
    padding: 5px 12px;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(208, 185, 109, 0.2);
}

.member-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(208, 185, 109, 0.05);
    color: #292B2B;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(208, 185, 109, 0.1);
}

.contact-link:hover {
    background: rgba(208, 185, 109, 0.1);
    border-color: rgba(208, 185, 109, 0.3);
    transform: translateX(3px);
}

.contact-link i {
    color: #D0B96D;
    font-size: 14px;
    width: 16px;
}

/* ========================================
   LEADERSHIP CTA SECTION
========================================== */

.leadership-cta {
    background: linear-gradient(135deg, #292B2B 0%, #1a1c1c 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 15px;
    line-height: 1.3;
}

.cta-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #FFFFFF;
    opacity: 0.9;
    margin: 0 0 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #D0B96D, #e6c980);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(208, 185, 109, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-secondary:hover {
    background: #FFFFFF;
    color: #292B2B;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVE DESIGN
========================================== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .leadership-hero {
        min-height: 70vh;
    }
    
    .leadership-hero::before {
        width: 60%;
        background-position: center center;
        background-size: cover;
    }
    
    .managing-director,
    .operations-team {
        padding: 80px 0;
    }
    
    .md-card {
        grid-template-columns: 280px 1fr;
        gap: 40px;
        padding: 30px;
    }
    
    .md-image {
        height: 320px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .leadership-hero {
        min-height: calc(100vh - 70px);
        text-align: center;
        padding: 40px 0;
    }
    
    .leadership-hero .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .leadership-hero .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }
    
    .leadership-hero::before {
        width: 100%;
        opacity: 0.15;
        background-position: center center;
        background-size: cover;
    }
    
    .hero-gradient-overlay {
        background: linear-gradient(135deg, 
            var(--dark) 0%, 
            rgba(41, 43, 43, 0.8) 50%, 
            rgba(41, 43, 43, 0.6) 100%);
    }
    
    .managing-director,
    .operations-team {
        padding: 60px 0;
    }
    
    .md-card {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
        text-align: center;
    }
    
    .md-image {
        max-width: 250px;
        height: 300px;
        margin: 0 auto;
    }
    
    .md-highlights {
        align-items: center;
    }
    
    .highlight-item {
        justify-content: center;
        text-align: center;
    }
    
    .md-contact {
        justify-content: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-member {
        padding: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .leadership-hero {
        min-height: calc(100vh - 60px);
        padding: 30px 0;
    }
    
    .leadership-hero .hero-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    .leadership-hero .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .md-image {
        max-width: 200px;
        height: 250px;
    }
    
    .md-name {
        font-size: 1.8rem;
    }
    
    .team-member {
        padding: 20px;
    }
    
    .role-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .member-name {
        font-size: 1.2rem;
    }
}

/* Advanced Animation Keyframes */
@keyframes advancedRipple {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes ringExpand {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(208, 185, 109, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(208, 185, 109, 0.6), 0 0 60px rgba(208, 185, 109, 0.4);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Back to Top Button - Enhanced */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-bounce);
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(208, 185, 109, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.back-to-top:hover::before {
    left: 100%;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(208, 185, 109, 0.5);
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 25px;
        right: 25px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}