/* ========================================
🎨 PURPLE VIOLET THEME - EXACT CONFIG COLORS
Using exact colors and gradients from PHP config
======================================== */
:root {
    /* BRAND COLORS - EXACT FROM CONFIG */
    --brand-primary-dark: #2d1b8f;
    --brand-primary: #3f2bbd;
    --brand-primary-light: #5a46e6;
    --brand-accent: #8b78ff;
    
    /* TEXT COLORS */
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-white: #ffffff;
    --text-on-purple: #ffffff;
    --page-heading: #3f2bbd;
    --page-text: #444444;

    /* BACKGROUNDS */
    --bg-primary: #ffffff;
    --bg-secondary: #f9f8ff;
    --bg-light: #f5f3ff;
    --bg-purple-subtle: #f0edff;
    
    /* GRADIENTS - EXACT FROM CONFIG */
    --gradient-primary: linear-gradient(180deg, #2a1878 0%, #3520a3 32%, #4731cc 60%, #5a46e6 82%, #6d5af0 100%);
    --gradient-secondary: linear-gradient(135deg, #2d1b8f 0%, #3f2bbd 50%, #5a46e6 75%, #8755fa 100%);
    --gradient-main: linear-gradient(135deg, #24157c 0%, #2d1b8f 45%, #3f2bbd 70%, #5a46e6 90%, #7b6af2 100%);
    --gradient-accent: linear-gradient(135deg, #4f32d6 0%, #7a52f4 50%, #be8cff 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(59, 45, 189, 0.92) 0%, rgba(90, 69, 241, 0.85) 100%);

    /* UTILITIES */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-purple: 0 4px 20px rgba(63, 43, 189, 0.15);
}

/* ========================================
    GLOBAL STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
    background: var(--bg-primary);
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* ========================================
    TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: var(--text-primary);
    margin-bottom: 1rem !important;
    letter-spacing: -0.3px !important;
}

p, .lead, .text-muted {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    color: var(--text-secondary);
    /* margin-bottom: 1rem; */
}

.text-muted {
    color: var(--text-muted) !important;
}

.btn, button {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0px !important;
}

.nav-link, .navbar-nav .nav-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* ========================================
    NAVBAR - WHITE WITH PURPLE ACCENTS
======================================== */
.navbar .container {
    max-width: 1500px;
    width: 100%;
    padding-left: 4vw!important;
    padding-right: 4vw!important;
}

.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(63, 43, 189, 0.1);
}

.navbar:not(.home-page .navbar) {
    background: var(--brand-primary-dark) !important;
    box-shadow: var(--shadow-purple);
}

.navbar-brand {
    color: var(--text-on-purple) !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    margin-right: auto;
}

.navbar-toggler {
    margin-left: auto;
    border-color: var(--bg-primary) !important;
    padding: 0.5rem;
    border: 2px solid var(--bg-primary) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(63, 43, 189, 0.25) !important;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em;
    height: 1.5em;
}

.nav-link {
    color: var(--text-on-purple);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    /* color: var(--text-muted) !important; */
    color: var(--bg-purple-subtle);
    background: rgba(63, 43, 189, 0.15);
    border-radius: 8px;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: var(--gradient-secondary) !important;
    box-shadow: 0 4px 20px rgba(63, 43, 189, 0.15);
}

.home-page .navbar {
    background: transparent !important;
    box-shadow: none;
}

.home-page .navbar.scrolled {
    background: var(--brand-primary-dark) !important;
    box-shadow: 0 4px 20px rgba(63, 43, 189, 0.15);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(63, 43, 189, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    /* padding: 10px; */
    margin-top: 0px;
    animation: fadeInDown 0.3s ease;
    z-index: 1060;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

/* .dropdown-item:hover {
    background: rgba(63, 43, 189, 0.08);
    color: var(--brand-primary) !important;
} */

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(63, 43, 189, 0.1) 0%, rgba(90, 70, 230, 0.1) 100%);
    color: var(--brand-primary);
    /* transform: translateX(5px); */
}

img.company-logo {
    position: relative;
    width: 50px;
    height: 50px;
    margin-right: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-brand {
        flex: 0 0 auto;
        max-width: 70%;
    }
    
    .navbar-toggler {
        flex: 0 0 auto;
        margin-left: auto;
        background-color: rgba(63, 43, 189, 0.05);
    }
    
    img.company-logo {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .brand-text {
        font-size: 16px;
    }

    .navbar-collapse {
        background: #ffffff;
        margin-top: 12px;
        padding: 16px 20px;
        border-radius: 16px;
        box-shadow: var(--shadow-purple);
        border: 1px solid rgba(63, 43, 189, 0.1);
    }

    .navbar-collapse .nav-link {
        padding: 12px 0 !important;
        font-size: 18px !important;
    }

    .navbar-collapse .nav-link:hover {
        background: rgba(63, 43, 189, 0.08);
        border-radius: 8px;
        padding-left: 12px !important;
        color: var(--brand-primary);
    }

    .nav-link {
        color: var(--text-primary);
    }
}

/* ========================================
    HERO SECTION - PRIMARY GRADIENT
======================================== */
.hero {
    min-height: 95vh;
    padding: 140px 0 30px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
    z-index: 1 !important;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    right: 10%;
    top: 20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 316%;
    inset: 0;
    background-image: url(../images/logo-eg.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 0.2;
    transform: translate(0%, -50%);
    pointer-events: none;
    mix-blend-mode: overlay;
}

@media (max-width: 767px) {
    .hero::after {
        width: 280px;
        height: 280px;
        right: 50%;
        top: 10%;
        transform: translateX(50%);
        filter: blur(40px);
    }

    .hero::before {
        height: 237%;
        background-size: contain;
    }
}

@media (max-width: 991px) {
    .hero::after {
        width: 420px;
        height: 420px;
        right: 50%;
        top: 15%;
        transform: translateX(50%);
        filter: blur(50px);
    }

    .hero::before {
        height: 290%;
        background-size: contain;
    }
}

.hero-content {
    position: relative;
}

.hero h1 {
    font-size: clamp(32px, 4.5vw, 52px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--text-white) !important;
}

.rotating-text-container {
    height: 36px;
    overflow: hidden;
    position: relative;
}

.rotating-text h2 {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: clamp(18px, 2.3vw, 26px) !important;
    font-weight: 400 !important;
    letter-spacing: 1.2px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-transform: uppercase;
    opacity: 0;
    animation: rotateTextFast 6s infinite;
}

.rotating-text h2:nth-child(1) { animation-delay: 0s; }
.rotating-text h2:nth-child(2) { animation-delay: 2s; }
.rotating-text h2:nth-child(3) { animation-delay: 4s; }

@keyframes rotateTextFast {
    0% { opacity: 0; transform: translateY(60px); }
    5% { opacity: 1; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(0); }
    35% { opacity: 0; transform: translateY(-60px); }
    100% { opacity: 0; transform: translateY(-60px); }
}

.hero .lead {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Buttons */
.btn-primary-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    color: var(--brand-primary) !important;
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-primary-custom:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
}

.btn-outline-custom {
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 12px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    background: transparent !important;
    transition: var(--transition-smooth) !important;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--brand-primary) !important;
}

/* Hero Visual Elements */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    height: 420px;            
    display: flex;
    justify-content: center;
    align-items: flex-end;     
    pointer-events: none;
    margin-top: auto;         
    padding: 0;
}

.hero > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hero-person-image {
    display: block;
    max-height: 100%;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
    pointer-events: auto;
    z-index: 2;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
    align-self: flex-end;
}

.hero-tag {
    position: absolute;
    /* background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--brand-primary); */
    z-index: 3;
    pointer-events: auto;
}

.hero-tag h2 {
    margin: 0 !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    color: var(--bg-primary) !important;
}

.hero-content,
.hero-visual-wrapper,
.hero::before,
.hero::after {
    z-index: inherit;
}

.hero-tag span {
    color: var(--bg-primary);
}

/* Desktop Tag Positions */
.tag-left { left: 30%; top: 13%; }
.tag-right { right: 16%; top: 30%; }
.tag-bottom { left: 25%; bottom: 14%; }

/* Hero Mobile Responsive */
@media (min-width: 1500px) {
    .hero-visual-wrapper {
        height: 480px;
    }
}

@media (min-width: 992px) and (max-width: 1499px) {
    .hero-visual-wrapper {
        height: 420px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-visual-wrapper {
        height: 360px;
    }

    .hero-tag {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-visual-wrapper {
        height: 300px;
    }

    .hero-tag {
        display: none;
    }
}

@media (max-width: 400px) {
    .hero-visual-wrapper {
        height: 260px;
    }
}

/* ========================================
    COMPLIANCE SECTION
======================================== */
/* .compliance-section {
    background: var(--bg-secondary);
    padding: 60px 0;
    border-top: 4px solid var(--brand-primary);
}

.compliance-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.compliance-item:hover {
    transform: translateY(-10px);
}

.compliance-item h3 {
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    color: var(--brand-primary) !important;
}

.compliance-item p {
    font-size: 18px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    color: var(--text-secondary) !important;
} */


/* ========================================
    STATS SECTION
======================================== */
.stats-section {
    /* background: var(--brand-primary-dark); */
    background: var(--bg-secondary);
    padding: 38px 0;
}

.stats-item {
    text-align: center;
    /* padding: 28px 20px; */
    position: relative;
}

/* .stats-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--brand-primary-dark);
} */

.stats-number {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(36px, 2vw, 64px);
    font-weight: 900;
    /* color: #ffffff; */
    color: var(--brand-primary) !important;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.stats-label {
    display: block;
    font-size: clamp(13px, 1.5vw, 16px);
    font-weight: 500;
    /* color: rgba(255, 255, 255, 0.7); */
    color: var(--text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 576px) {
    .stats-item:not(:last-child)::after {
        display: none;
    }

    .stats-item {
        padding: 10px 10px;
    }

    .stats-item:last-child {
        border-bottom: none;
    }
}


/* ========================================
    MISSION SECTION
======================================== */
.mission-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-primary);
}

.mission-section h2 {
    font-weight: 600 !important;
    margin-bottom: 2rem !important;
    color: var(--page-heading) !important;
    position: relative;
    display: inline-block;
}

.mission-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-secondary);
    border-radius: 3px;
}

.mission-section p {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: var(--page-text) !important;
    max-width: 1000px;
    margin: 0 auto !important;
    line-height: 1.7 !important;
}

/* ========================================
    PRODUCTS SECTION
======================================== */
.products-section {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.section-subtitle{
    font-size: 18px;
    color: var(--text-secondary);
}

.membership-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 2px solid rgba(63, 43, 189, 0.1);
    position: relative;
    overflow: hidden;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.membership-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 40px rgba(63, 43, 189, 0.2);
    border-color: var(--brand-primary);
}

.membership-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: var(--shadow-purple);
}

.card-title {
    font-weight: 700;
    color: var(--page-heading);
    margin-bottom: 10px;
}

.card-subtitle {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(63, 43, 189, 0.1);
    position: relative;
    padding-left: 35px;
    color: var(--text-secondary);
    font-weight: 500;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--text-white);
    background: var(--brand-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Buttons */
.btn-gradient {
    background: var(--gradient-secondary);
    color: var(--text-white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::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.5s ease;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-purple);
    color: var(--text-white);
}

.btn:hover {
    background-color: var(--brand-accent);
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gradient:hover {
    background: var(--gradient-secondary);
    border-color: transparent;
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-purple);
}

.pricing-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Mobile */
@media (max-width: 576px) {
    .pricing-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ========================================
    FRAMEWORK SECTION
======================================== */
.framework-section {
    background: linear-gradient(180deg, #3f2bbd 0%, #5a46e6 20%, #7b6af2 40%, #a89ff5 60%, #d4d0f9 80%, #ffffff 100%);
    padding: 80px 0;
    text-align: center;
}

.framework-section h2 {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: var(--text-on-purple) !important;
}

.framework-section p {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: var(--page-text) !important;
    line-height: 1.7 !important;
    max-width: 1000px;
    margin: 0 auto !important;
}

/* ========================================
    PREMIUM SERVICES (MODERN CARDS)
======================================== */

.premium-services-section .container{
    max-width: 1500px;
    margin: 0 auto;
}

.product-card-modern {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(63, 43, 189, 0.1);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.product-card-modern:hover {
    transform: translateY(-12px);
    border-color: var(--brand-primary);
    box-shadow: 0 16px 48px rgba(63, 43, 189, 0.15);
}

.product-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px 40px;
}

.icon-wrapper {
    width: 140px;
    height: 140px;
    background: rgba(63, 43, 189, 0.08);
    border: 2px solid rgba(63, 43, 189, 0.15);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    transition: var(--transition-smooth);
}

.product-card-modern:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(63, 43, 189, 0.12);
}

.product-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px 28px 0 0;
    padding: 32px 28px 24px;
    margin-top: auto;
    border-top: 1px solid rgba(63, 43, 189, 0.1);
}

.product-content h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--page-heading) !important;
}

.product-content p {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
}

@media (max-width: 768px) {
    .product-card-modern {
        min-height: 380px;
    }
    
    .product-visual {
        padding: 50px 30px 30px;
    }
    
    .icon-wrapper {
        width: 120px;
        height: 120px;
    }
}

/* RESET (important) */
* {
  box-sizing: border-box;
}

/* SECTION */
.testimonials {
  padding: 80px 20px;
  background: var(--bg-secondary);
  text-align: center;
}

/* TITLE */
.title {
  font-size: 32px;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  margin-bottom: 40px;
}

/* CAROUSEL */
.carousel {
  position: relative;
}

/* TRACK */
.track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px;
  scroll-behavior: smooth;
}

.track::-webkit-scrollbar {
  display: none;
}

/* CARD */
.card {
  min-width: 320px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

/* VIDEO */
.video {
  width: 100%;
  aspect-ratio: 16/9;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* META */
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  text-align: left;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5a46e6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.meta h4 {
  margin: 0;
  font-size: 15px;
}

.meta p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

/* ARROWS */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #5a46e6;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.arrow.left { left: -10px; }
.arrow.right { right: -10px; }

/* HINT */
.hint {
  margin-top: 20px;
  color: #777;
}

/* MOBILE */
@media (max-width: 768px) {
  .arrow {
    display: none;
  }
}

/* ========================================
    ACHIEVEMENTS SECTION
======================================== */
.achievements-section {
    background: linear-gradient(180deg, #3f2bbd 0%, #5a46e6 0%, #7b6af2 10%, #a89ff5 30%, #d4d0f9 50%, #ffffff 100%);
}

.achievements-section h2 {
    color: var(--text-on-purple) !important;
}

.achievement-item {
    padding: 20px 10px;
    text-align: center;
}

.achievement-item:not(:last-child) {
    border-right: 1px solid rgba(63, 43, 189, 0.15);
}

@media (max-width: 768px) {
    .achievement-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(63, 43, 189, 0.15);
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
}

.achievement-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 22px;
}

.achievement-item h4 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--page-heading) !important;
}

.achievement-item p {
    font-size: 18px !important;
    color: var(--text-secondary);
}

/* ========================================
    FOUNDERS SECTION
======================================== */
/* .founders-section {
    background: var(--bg-primary);
}

.slider-container {
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--brand-primary);
    border-radius: 20px;
    overflow: hidden;
}

.founder-quote {
    background: var(--gradient-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-purple);
}

.founder-quote p {
    font-size: 1.05rem;
    color: var(--text-white);
    line-height: 1.7;
}

.founder-quote h5 {
    color: var(--text-white);
}

.fa-quote-left-alt:before, .fa-quote-left:before{
    color: var(--bg-primary);
} */

/* ========================================
    FOUNDERS SECTION - BALANCED SIZE
======================================== */
.founders-section {
    background: var(--bg-primary);
    padding: 80px 0;
}

.founders-section h2 {
    color: var(--page-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* Centered row with vertical alignment */
.founders-section .row {
    display: flex;
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Wrapper - Balanced size */
.founder-image-wrapper {
    width: 100%;
    max-width: 420px;
    height: 480px;
    margin: 0 auto;
    border: 3px solid var(--brand-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Quote Box - Compact but not too small */
.founder-quote {
    background: var(--gradient-secondary);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-purple);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-quote .fa-quote-left {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.founder-quote p {
    font-size: 1.05rem;
    color: var(--text-white);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.founder-quote p:last-of-type {
    margin-bottom: 1.5rem;
}

.founder-quote h5 {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0;
}

/* Large Desktop */
@media (min-width: 1400px) {
    .founders-section .row {
        max-width: 1300px;
    }
}

/* Laptop */
@media (max-width: 1199px) {
    .founder-image-wrapper {
        max-width: 380px;
        height: 440px;
    }
    
    .founder-quote {
        padding: 2.5rem 2rem;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .founders-section {
        padding: 60px 0;
    }
    
    .founders-section .row {
        align-items: flex-start;
    }
    
    .founder-image-wrapper {
        max-width: 350px;
        height: 400px;
        margin-bottom: 2rem;
    }
    
    .founder-quote {
        padding: 2.5rem 2rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .founder-image-wrapper {
        max-width: 100%;
        height: 380px;
    }
    
    .founder-quote {
        padding: 2rem 1.5rem;
    }
    
    .founder-quote p {
        font-size: 1rem;
    }
}

/* ========================================
    CONTACT SECTION
======================================== */
.contact-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-section h2 {
    font-size: 36px !important;
    font-weight: 600 !important;
    color: var(--page-heading) !important;
}

.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

/* .contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid rgba(63, 43, 189, 0.1);
    transition: var(--transition-smooth);
} */

.contact-info-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 8px 24px rgba(63, 43, 189, 0.15);
    transform: translateX(5px);
}

.contact-icon-modern {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.contact-info-item:hover .contact-icon-modern {
    transform: scale(1.1) rotate(-5deg);
}

.contact-details {
    flex: 1;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.contact-details h5 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--page-heading) !important;
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 16px !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.6;
}

/* Specific fix for email/long text */
.contact-info-item .contact-details {
    flex: 1;
    min-width: 0; /* Important for flexbox text overflow */
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid rgba(63, 43, 189, 0.1);
    transition: var(--transition-smooth);
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-info-item {
        padding: 24px;
        gap: 15px;
    }
    
    .contact-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* .contact-details p {
        font-size: 14px !important;
    } */
}

@media (max-width: 576px) {
    .contact-info-item {
        padding: 20px;
    }
    
    /* .contact-details p {
        font-size: 13px !important;
    } */
}

/* ========================================
    FOOTER - MAIN GRADIENT
======================================== */
footer {
    background: var(--brand-primary-dark);
    padding: 60px 0 30px;
    border-top: 4px solid var(--brand-primary-light);
    color: var(--text-white);
}

footer h5 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--text-white) !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--text-white);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: var(--text-white);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.disclaimer {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    border-left: 5px solid rgba(255, 255, 255, 0.3);
    border-right: 5px solid rgba(255, 255, 255, 0.3);
}

.disclaimer p {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.8 !important;
}

.footer p {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Page layout css */
.page-wrapper {
    padding: 130px 0 50px;
}

.page-title {
    color: var(--page-heading);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    color: var(--page-heading);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.page-content p,
.page-content li {
    color: var(--page-text);
    font-size: 1rem;
    line-height: 1.8;
}

.page-content ul {
    padding-left: 1.2rem;
}

.page-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(63, 43, 189, 0.1);
}

/* ========================================
    SCROLL TO TOP
======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    opacity: 1;
    /* visibility: hidden; */
    transition: var(--transition-smooth);
    cursor: pointer;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background: var(--brand-primary-dark);
}

/* ========================================
    RESPONSIVE TYPOGRAPHY
======================================== */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 10px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .slider-container {
        height: 400px;
    }
}

/* ========================================
    UTILITY CLASSES
======================================== */
.text-yellow { color: var(--brand-primary) !important; }
.bg-yellow { background: var(--brand-primary) !important; }
.bg-yellow-gradient { background: var(--gradient-secondary) !important; }
.border-yellow { border-color: var(--brand-primary) !important; }
.shadow-yellow { box-shadow: var(--shadow-purple) !important; }















/* ========================================
    HERO SECTION - COMPLETE REWRITE
======================================== */
.hero {
    height: 100vh;
    height: 100svh;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
}

/* Background watermark logo */
/* .hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    background-image: url(../images/logo-eg.png);
    background-repeat: no-repeat;
    background-position: 75% center;
    background-size: 55% auto;
    opacity: 0.08;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 0;
} */

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 316%;
    inset: 0;
    background-image: url(../images/logo-eg.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 0.2;
    transform: translate(0%, -50%);
    pointer-events: none;
    mix-blend-mode: overlay;

    /* background-size: 55% auto; */
}

/* Radial glow top right */
.hero::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    right: -5%;
    top: -10%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* ── TEXT BLOCK ── */
.hero > .container-fluid,
.hero > .container {
    position: relative;
    z-index: 2;
    padding-top: 100px;         /* navbar height offset */
    flex-shrink: 0;
    padding-left: 5vw !important;
    padding-right: 5vw !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(38px, 5.5vw, 68px) !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    letter-spacing: -1px !important;
}

.rotating-text-container {
    height: 34px;
    overflow: hidden;
    position: relative;
}

.rotating-text h2 {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: clamp(14px, 1.6vw, 20px) !important;
    font-weight: 500 !important;
    letter-spacing: 3px !important;
    color: rgba(255,255,255,0.85) !important;
    text-transform: uppercase;
    opacity: 0;
    animation: rotateTextFast 6s infinite;
}

.rotating-text h2:nth-child(1) { animation-delay: 0s; }
.rotating-text h2:nth-child(2) { animation-delay: 2s; }
.rotating-text h2:nth-child(3) { animation-delay: 4s; }

@keyframes rotateTextFast {
    0%   { opacity: 0; transform: translateY(50px); }
    5%   { opacity: 1; transform: translateY(0); }
    30%  { opacity: 1; transform: translateY(0); }
    35%  { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 0; transform: translateY(-50px); }
}

.hero .lead,
.hero p {
    color: rgba(255,255,255,0.9) !important;
    font-size: clamp(17px, 1.5vw, 17px) !important;
}

/* ── VISUAL WRAPPER ── */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    pointer-events: none;
    margin-top: -40px;          /* overlap text area slightly */
    z-index: 2;
}

/* ── PERSON IMAGE ── */
.hero-person-image {
    display: block;
    height: calc(100% + 40px);
    width: auto;
    max-width: 42vw;            /* relative to viewport so it scales on all screens */
    min-width: 280px;
    object-fit: contain;
    object-position: center bottom;
    align-self: flex-end;
    margin-bottom: 0;
    pointer-events: auto;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 0px 60px rgba(0,0,0,0.25));
}

/* ── TAGS ── */
.hero-tag {
    position: absolute;
    z-index: 4;
    pointer-events: auto;
}

.tag-label {
    display: block;
    font-size: clamp(10px, 0.85vw, 13px);
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    line-height: 1;
}

.hero-tag h2 {
    margin: 0 !important;
    font-size: clamp(24px, 3vw, 46px) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.05 !important;
    letter-spacing: -0.5px !important;
}

/* Tag positions — hug the person from sides */
.tag-left   { left: 6vw;  top: 38%; }
.tag-right  { right: 5vw; top: 28%; }
.tag-bottom { left: 6vw;  bottom: 16%; }

/* ── NAVBAR override for hero page ── */
.home-page .navbar {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.home-page .navbar.scrolled {
    background: var(--brand-primary-dark) !important;
    box-shadow: 0 4px 20px rgba(63,43,189,0.2) !important;
}

/* ========================================
    HERO RESPONSIVE
======================================== */

/* Large desktop */
@media (min-width: 1400px) {
    .hero > .container-fluid,
    .hero > .container {
        padding-top: 110px;
    }

    .hero-person-image {
        max-width: 38vw;
    }

    .tag-left   { left: 28vw;  top: 15%; }
    .tag-right  { right: 17vw; top: 26%; }
    .tag-bottom { left: 25vw;  bottom: 18%; }
}

/* Laptop */
@media (max-width: 1199px) {
    .hero-person-image { max-width: 46vw; }
    .tag-left   { left: 4vw; top: 36%; }
    .tag-right  { right: 3vw; top: 26%; }
}

/* Tablet landscape — hide tags */
@media (max-width: 991px) {
    .hero > .container-fluid,
    .hero > .container {
        padding-top: 90px;
    }

    .hero-person-image {
        max-width: 65vw;
    }

    .hero-tag { display: none; }
    .hero-visual-wrapper { margin-top: -20px; }

    .hero::after {
        width: 420px;
        height: 420px;
        right: 50%;
        top: 15%;
        transform: translateX(50%);
        filter: blur(50px);
    }

    .hero::before {
        height: 290%;
        background-size: contain;
    }
}

/* Tablet portrait */
@media (max-width: 767px) {
    .hero > .container-fluid,
    .hero > .container {
        padding-top: 100px;
        padding-left: 4vw !important;
        padding-right: 4vw !important;
    }

    .hero-person-image {
        max-width: 80vw;
    }

    .hero h1 {
        font-size: clamp(31px, 3vw, 68px) !important;
    }

    .hero-visual-wrapper { margin-top: -15px; }

    .hero::after {
        width: 280px;
        height: 280px;
        right: 50%;
        top: 10%;
        transform: translateX(50%);
        filter: blur(40px);
    }

    .hero::before {
        height: 190%;
        background-size: contain;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero > .container-fluid,
    .hero > .container {
        padding-top: 110px;
    }

    .hero-person-image {
        max-width: 95vw;
    }

    /* .hero h1 {
        font-size: clamp(28px, 3vw, 68px) !important;
    } */

    .hero-visual-wrapper { margin-top: -10px; }
}