@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Redesign variables */
:root {
    --ep-bg: #0B1120;
    --ep-card-bg: #111827;
    --ep-card-glass: rgba(17, 24, 39, 0.7);
    --ep-primary: #0EA5E9;
    --ep-secondary: #3B82F6;
    --ep-accent: #FACC15;
    --ep-white: #FFFFFF;
    --ep-text: #CBD5E1;
    --ep-text-light: #F8FAFC;
    --ep-border: rgba(255, 255, 255, 0.08);
    --ep-glow: rgba(14, 165, 233, 0.2);
    --ep-font-headings: 'Space Grotesk', sans-serif;
    --ep-font-body: 'Inter', sans-serif;
    --ep-shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --ep-shadow-glow: 0 10px 40px -15px rgba(14, 165, 233, 0.4);
}

/* Base resets & Fonts */
.ep-page-wrapper {
    background-color: var(--ep-bg) !important;
    color: var(--ep-text) !important;
    font-family: var(--ep-font-body) !important;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 100px; /* navbar spacing */
}

.ep-page-wrapper h1,
.ep-page-wrapper h2,
.ep-page-wrapper h3,
.ep-page-wrapper h4,
.ep-page-wrapper h5,
.ep-page-wrapper h6 {
    font-family: var(--ep-font-headings) !important;
    color: var(--ep-text-light);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Sections padding */
.ep-section {
    padding: 100px 0;
    position: relative;
}
.ep-section-alt {
    background-color: #070B16;
}

/* Grid & Layout Adjustments */
.ep-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Gradient text */
.ep-gradient-text {
    background: linear-gradient(135deg, var(--ep-white) 30%, var(--ep-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ep-gradient-accent-text {
    background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Header */
.ep-section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.ep-section-header .ep-tag {
    display: inline-block;
    color: var(--ep-primary);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}
.ep-section-header h2 {
    font-size: 38px;
    margin-bottom: 16px;
}
.ep-section-header p {
    font-size: 16px;
    color: var(--ep-text);
}

/* Custom glass card layout */
.ep-card {
    background: var(--ep-card-glass);
    border: 1px solid var(--ep-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--ep-shadow-premium);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.ep-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), var(--ep-glow);
}

/* Premium gradient borders for cards */
.ep-card-gradient {
    position: relative;
}
.ep-card-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(250, 204, 21, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Animations */
@keyframes epFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes epPulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.ep-float-animation {
    animation: epFloat 6s ease-in-out infinite;
}

/* 1. HERO SECTION */
.ep-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 60px;
    align-items: center;
}

.ep-hero-portrait-wrapper {
    position: relative;
}
.ep-hero-portrait-inner {
    border-radius: 24px;
    overflow: hidden;
    background: #0D162D;
    padding: 8px;
    position: relative;
    box-shadow: var(--ep-shadow-premium), var(--ep-shadow-glow);
    transition: all 0.4s ease;
}
.ep-hero-portrait-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-secondary), var(--ep-accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.ep-hero-portrait-inner img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    object-fit: cover;
}

.ep-hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
}

/* Subtitle roles tag style */
.ep-hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.ep-role-tag {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--ep-text-light);
    font-family: var(--ep-font-headings);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.ep-role-tag:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--ep-primary);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

/* Hero Quote Card */
.ep-hero-quote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--ep-primary);
    padding: 20px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 30px;
    position: relative;
}
.ep-hero-quote blockquote {
    font-size: 20px;
    font-weight: 400;
    font-family: var(--ep-font-headings);
    color: var(--ep-text-light);
    margin: 0;
    line-height: 1.4;
    border: none;
    padding: 0;
}
.ep-hero-quote blockquote::before {
    content: '"';
    color: var(--ep-primary);
    font-size: 40px;
    font-family: Georgia, serif;
    position: absolute;
    top: -5px;
    left: 8px;
    opacity: 0.15;
}

/* Hero CTA Buttons */
.ep-hero-ctas {
    display: flex;
    gap: 18px;
}
.ep-btn-gradient {
    background: linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-secondary) 100%);
    color: var(--ep-white) !important;
    font-family: var(--ep-font-headings);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ep-btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5), 0 0 10px var(--ep-primary);
}

.ep-btn-outline {
    background: transparent;
    color: var(--ep-text-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--ep-font-headings);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.ep-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ep-white);
    transform: translateY(-3px);
}

/* 2. STATISTICS SECTION */
.ep-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}
.ep-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 35px 20px;
}
.ep-stat-icon {
    font-size: 32px;
    color: var(--ep-primary);
    margin-bottom: 15px;
}
.ep-stat-number {
    font-size: 42px;
    font-weight: 700;
    font-family: var(--ep-font-headings);
    color: var(--ep-text-light);
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, var(--ep-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ep-stat-label {
    font-size: 14px;
    color: var(--ep-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* 3. EXECUTIVE PROFILE */
.ep-profile-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 45px;
}
.ep-profile-card p {
    font-size: 17px;
    margin-bottom: 24px;
    line-height: 1.8;
}
.ep-profile-card p:last-child {
    margin-bottom: 0;
}
.ep-dropcap {
    float: left;
    font-size: 54px;
    line-height: 40px;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    font-family: var(--ep-font-headings);
    color: var(--ep-primary);
    font-weight: 700;
}

/* 4. LEADERSHIP PHILOSOPHY */
.ep-quote-phil-section {
    position: relative;
}
.ep-phil-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ep-phil-card {
    padding: 30px;
}
.ep-phil-icon {
    font-size: 26px;
    color: var(--ep-accent);
    margin-bottom: 20px;
}
.ep-phil-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.ep-phil-card p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 5. PROFESSIONAL EXPERIENCE */
.ep-exp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.ep-exp-card {
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ep-exp-icon {
    font-size: 24px;
    color: var(--ep-primary);
    margin-bottom: 15px;
}
.ep-exp-card h4 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

/* 6. BUSINESS PORTFOLIO */
.ep-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.ep-port-card {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
}
.ep-port-icon {
    font-size: 32px;
    color: var(--ep-primary);
    margin-bottom: 20px;
}
.ep-port-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}
.ep-port-desc {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: var(--ep-text-light);
    opacity: 0.85;
}
.ep-port-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}
.ep-port-list li {
    position: relative;
    padding-left: 18px;
}
.ep-port-list li::before {
    content: '→';
    color: var(--ep-primary);
    position: absolute;
    left: 0;
    top: -1px;
}

/* 7. GLOBAL PRESENCE */
.ep-global-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}
.ep-map-svg-container {
    position: relative;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid var(--ep-border);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ep-map-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.1));
}
.ep-map-dot {
    animation: epPulseGlow 2.5s infinite;
}
.ep-locations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ep-loc-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ep-loc-icon {
    margin-top: 4px;
    font-size: 18px;
    color: var(--ep-primary);
}
.ep-loc-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}
.ep-loc-content p {
    font-size: 14px;
    margin: 0;
}

/* 8. ENTREPRENEURSHIP TIMELINE */
.ep-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.ep-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--ep-primary), var(--ep-secondary), transparent);
    transform: translateX(-50%);
    top: 0;
}
.ep-timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
    justify-content: space-between;
}
.ep-timeline-item:last-child {
    margin-bottom: 0;
}
.ep-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.ep-timeline-node {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    width: 20px;
    height: 20px;
    background: var(--ep-bg);
    border: 4px solid var(--ep-primary);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 10px var(--ep-primary);
    top: 25px;
}
.ep-timeline-content-wrap {
    width: 45%;
}
.ep-timeline-card {
    padding: 24px;
}
.ep-timeline-card h4 {
    font-size: 18px;
    color: var(--ep-primary);
    margin-bottom: 8px;
}
.ep-timeline-card p {
    font-size: 14px;
    margin: 0;
}

/* 9. RESEARCH & INNOVATION */
.ep-research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ep-research-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
}
.ep-research-icon {
    font-size: 22px;
    color: var(--ep-primary);
    background: rgba(14, 165, 233, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ep-research-card h4 {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
}

/* 10. LEADERSHIP STYLE */
.ep-leadstyle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.ep-style-card-horizontal {
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: center;
}
.ep-style-icon-box {
    font-size: 26px;
    color: var(--ep-accent);
    background: rgba(250, 204, 21, 0.08);
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ep-style-content-box h4 {
    font-size: 18px;
    margin-bottom: 6px;
}
.ep-style-content-box p {
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

/* 11. MENTOR SECTION */
.ep-mentor-box {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    padding: 45px;
}
.ep-mentor-number-wrap {
    text-align: center;
}
.ep-mentor-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--ep-accent);
    background: linear-gradient(135deg, var(--ep-accent) 0%, var(--ep-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
}
.ep-mentor-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.ep-mentor-text {
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

/* 12. REAL ESTATE VISION */
.ep-re-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ep-re-card {
    padding: 30px;
}
.ep-re-icon {
    font-size: 28px;
    color: var(--ep-primary);
    margin-bottom: 20px;
}
.ep-re-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.ep-re-card p {
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* 13. BUSINESS VALUES */
.ep-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.ep-val-card {
    padding: 30px 20px;
    text-align: center;
}
.ep-val-icon {
    font-size: 28px;
    margin-bottom: 15px;
}
.ep-val-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}
.ep-val-card p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Values Icon Colors */
.ep-color-integrity { color: #10B981; }
.ep-color-innovation { color: var(--ep-primary); }
.ep-color-excellence { color: var(--ep-accent); }
.ep-color-collaboration { color: #EC4899; }
.ep-color-sustainability { color: #84CC16; }

/* 14. RECOGNITION */
.ep-badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}
.ep-badge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ep-border);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ep-font-headings);
    font-size: 15px;
    font-weight: 500;
    color: var(--ep-text-light);
    transition: all 0.3s ease;
}
.ep-badge-item i {
    color: var(--ep-accent);
}
.ep-badge-item:hover {
    background: rgba(250, 204, 21, 0.05);
    border-color: var(--ep-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.1);
}

/* 15. VISION BANNER */
.ep-vision-banner {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #09122C 0%, #0F172A 100%);
    border: 1px solid var(--ep-border);
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 60px;
}
.ep-vision-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
.ep-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.ep-vision-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.ep-vision-item i {
    font-size: 18px;
    color: var(--ep-primary);
    margin-top: 4px;
}
.ep-vision-item p {
    font-size: 15px;
    margin: 0;
    color: var(--ep-text-light);
}

/* 16. MISSION SECTION */
.ep-mission-card {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 40px;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent), var(--ep-card-glass);
}
.ep-mission-icon {
    font-size: 40px;
    color: var(--ep-accent);
    margin-bottom: 25px;
}
.ep-mission-card blockquote {
    font-size: 24px;
    font-weight: 500;
    font-family: var(--ep-font-headings);
    color: var(--ep-text-light);
    line-height: 1.5;
    margin-bottom: 25px;
    border: none;
    padding: 0;
}
.ep-mission-label {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: var(--ep-primary);
    font-weight: 600;
}

/* 17. CONTACT CARD */
.ep-contact-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}
.ep-contact-icon {
    font-size: 36px;
    color: var(--ep-primary);
    margin-bottom: 20px;
}
.ep-contact-email {
    font-size: 28px;
    font-family: var(--ep-font-headings);
    font-weight: 600;
    color: var(--ep-text-light);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.ep-contact-email:hover {
    color: var(--ep-primary);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}
.ep-contact-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.ep-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ep-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--ep-text);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ep-social-link img {
    width: 16px;
    height: 16px;
    filter: invert(0.8);
}
.ep-social-link:hover {
    background: var(--ep-primary);
    color: var(--ep-white);
    border-color: var(--ep-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

/* ====================================================
   RESPONSIVE DESIGN (Media Queries)
   ==================================================== */
@media (max-width: 1200px) {
    .ep-hero-grid {
        gap: 40px;
    }
    .ep-hero-content h1 {
        font-size: 46px;
    }
    .ep-portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ep-exp-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .ep-values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .ep-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .ep-hero-portrait-wrapper {
        max-width: 380px;
        margin: 0 auto;
    }
    .ep-hero-roles {
        justify-content: center;
    }
    .ep-hero-ctas {
        justify-content: center;
    }
    .ep-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }
    .ep-phil-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ep-exp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ep-global-wrapper {
        grid-template-columns: 1fr;
    }
    .ep-leadstyle-grid {
        grid-template-columns: 1fr;
    }
    .ep-mentor-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ep-re-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ep-research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ep-page-wrapper {
        padding-top: 80px;
    }
    .ep-section {
        padding: 60px 0;
    }
    .ep-section-header h2 {
        font-size: 30px;
    }
    .ep-hero-content h1 {
        font-size: 36px;
    }
    .ep-hero-quote blockquote {
        font-size: 18px;
    }
    .ep-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ep-phil-grid {
        grid-template-columns: 1fr;
    }
    .ep-exp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ep-portfolio-grid {
        grid-template-columns: 1fr;
    }
    .ep-timeline::before {
        left: 20px;
    }
    .ep-timeline-node {
        left: 20px;
    }
    .ep-timeline-content-wrap {
        width: calc(100% - 40px);
        margin-left: 40px;
    }
    .ep-timeline-item {
        margin-bottom: 30px;
    }
    .ep-timeline-item:nth-child(even) {
        flex-direction: row;
    }
    .ep-re-grid {
        grid-template-columns: 1fr;
    }
    .ep-research-grid {
        grid-template-columns: 1fr;
    }
    .ep-values-grid {
        grid-template-columns: 1fr;
    }
    .ep-vision-grid {
        grid-template-columns: 1fr;
    }
    .ep-contact-box {
        padding: 30px 20px;
    }
    .ep-contact-email {
        font-size: 20px;
    }
}

/* ====================================================
   PRINT / PDF STYLES (A4 Brochure Optimization)
   ==================================================== */
@media print {
    @page {
        size: A4;
        margin: 10mm 12mm;
    }

    /* Force dark background and white/slate text for premium look */
    body, html, .ep-page-wrapper, .ep-section, .ep-section-alt, .ep-card, .ep-timeline-card, .ep-badge-item, .ep-loc-card, .ep-val-card, .ep-re-card, .ep-style-card-horizontal, .ep-research-card, .ep-port-card, .ep-vision-banner, .ep-mission-card {
        background-color: #0B1120 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color: #CBD5E1 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #0B1120 !important;
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    /* Hide web-only UI elements */
    #preloader, header, footer, .navbar, .ep-hero-ctas, .ep-social-link, .share-link, .btn, .ep-btn-gradient, .ep-btn-outline {
        display: none !important;
    }

    /* Remove top offset */
    .ep-page-wrapper {
        padding-top: 0 !important;
        background: #0B1120 !important;
    }

    /* Set grid sizes for A4 layout */
    .ep-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .ep-section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .ep-section-header {
        margin-bottom: 20px !important;
    }

    .ep-section-header h2 {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }

    .ep-section-header p {
        font-size: 12px !important;
    }

    /* Grid columns layout for A4 print */
    .ep-stats-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
        margin-top: 0 !important;
    }

    .ep-phil-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }

    .ep-exp-grid {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 10px !important;
    }

    .ep-portfolio-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    .ep-leadstyle-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .ep-re-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    .ep-research-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }

    .ep-values-grid {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 10px !important;
    }

    .ep-vision-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-top: 20px !important;
    }

    /* Hero layout adjustments */
    .ep-hero-grid {
        display: grid !important;
        grid-template-columns: 180px 1fr !important;
        gap: 30px !important;
        align-items: center !important;
    }

    .ep-hero-portrait-wrapper {
        max-width: 180px !important;
    }

    .ep-hero-portrait-inner {
        padding: 4px !important;
        border-radius: 16px !important;
    }

    .ep-hero-portrait-inner img {
        border-radius: 12px !important;
    }

    .ep-hero-content h1 {
        font-size: 32px !important;
        margin-bottom: 10px !important;
    }

    .ep-hero-roles {
        gap: 6px !important;
        margin-bottom: 15px !important;
    }

    .ep-role-tag {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }

    .ep-hero-quote {
        padding: 12px 15px !important;
        margin-bottom: 0 !important;
    }

    .ep-hero-quote blockquote {
        font-size: 15px !important;
    }

    /* Card adjustments */
    .ep-card {
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 15px !important;
        box-shadow: none !important;
        transform: none !important;
        transition: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .ep-profile-card {
        max-width: 100% !important;
        padding: 20px !important;
    }

    .ep-profile-card p {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }

    .ep-dropcap {
        font-size: 36px !important;
        line-height: 28px !important;
    }

    .ep-stat-card {
        padding: 15px 10px !important;
    }

    .ep-stat-number {
        font-size: 26px !important;
        margin-bottom: 4px !important;
    }

    .ep-stat-label {
        font-size: 10px !important;
    }

    /* Business Portfolio */
    .ep-port-card {
        padding: 15px !important;
    }

    .ep-port-card h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .ep-port-desc {
        font-size: 11px !important;
        margin-bottom: 12px !important;
    }

    .ep-port-list {
        gap: 4px !important;
    }

    .ep-port-list li {
        font-size: 11px !important;
    }

    /* Global presence */
    .ep-global-wrapper {
        grid-template-columns: 1.3fr 1fr !important;
        gap: 20px !important;
    }

    .ep-map-svg-container {
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .ep-loc-card {
        padding: 10px 12px !important;
        border-radius: 8px !important;
        gap: 10px !important;
    }

    .ep-loc-icon {
        font-size: 13px !important;
        margin-top: 2px !important;
    }

    .ep-loc-content h4 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    .ep-loc-content p {
        font-size: 11px !important;
    }

    /* Timeline adjustments */
    .ep-timeline::before {
        left: 12px !important;
    }

    .ep-timeline-node {
        left: 12px !important;
        width: 12px !important;
        height: 12px !important;
        border-width: 2.5px !important;
        top: 20px !important;
    }

    .ep-timeline-content-wrap {
        width: calc(100% - 30px) !important;
        margin-left: 30px !important;
    }

    .ep-timeline-item {
        margin-bottom: 20px !important;
        flex-direction: row !important;
    }

    .ep-timeline-card {
        padding: 15px !important;
    }

    .ep-timeline-card h4 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }

    /* Mentor section */
    .ep-mentor-box {
        grid-template-columns: 150px 1fr !important;
        gap: 24px !important;
        padding: 20px !important;
        border-radius: 12px !important;
        max-width: 100% !important;
    }

    .ep-mentor-number {
        font-size: 42px !important;
    }

    .ep-mentor-text {
        font-size: 12px !important;
    }

    /* Vision / Mission */
    .ep-vision-banner {
        border-radius: 16px !important;
        padding: 30px !important;
    }

    .ep-vision-banner h2 {
        font-size: 24px !important;
    }

    .ep-vision-item p {
        font-size: 11px !important;
    }

    .ep-mission-card {
        padding: 30px !important;
        border-radius: 16px !important;
    }

    .ep-mission-card blockquote {
        font-size: 15px !important;
        margin-bottom: 15px !important;
    }

    .ep-mission-icon {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }

    /* Contact box */
    .ep-contact-box {
        padding: 30px !important;
        border-radius: 16px !important;
        max-width: 100% !important;
    }

    .ep-contact-email {
        font-size: 20px !important;
        margin-bottom: 0 !important;
    }

    /* Header rules to keep together and force breaks */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    /* Explicit A4 Page Breaks at clean logical section boundaries */
    #philosophy-section,
    #portfolio-section,
    #research-section,
    #realestate-section,
    #vision-mission-section {
        page-break-before: always !important;
        break-before: page !important;
    }
}
