/* ===================================
   CLEAN WHITE THEME - IPEX CAPITAL
   Premium Professional Version
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* IPEX Capital Colors */
    --navy-purple: #2d3561;         /* From logo - for accents */
    --navy-dark: #1a1d3a;           /* Dark purple - text */
    --green-primary: #00d4a1;       /* Green - CTAs */
    --green-light: #00f5b8;         /* Light green - hover */
    
    /* Backgrounds */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    
    /* Text */
    --text-dark: #1a1d3a;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    
    /* Gradients */
    --gradient-green: linear-gradient(135deg, #00f5b8 0%, #00d4a1 100%);
    --gradient-purple: linear-gradient(135deg, #2d3561 0%, #1a1d3a 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===================================
   WHITE NAVBAR - Professional
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    animation: slideInLeft 0.6s ease-out;
}

.logo img {
    height: 55px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu li {
    animation: fadeIn 0.6s ease-out backwards;
}

.nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu li:nth-child(4) { animation-delay: 0.4s; }

.nav-menu a {
    color: var(--navy-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--green-primary);
}

.cta-btn {
    background: var(--gradient-green);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 212, 161, 0.2);
}

.cta-btn::after {
    display: none;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 161, 0.3);
}

.mobile-menu-toggle {
    display: none;
}

/* ===================================
   HERO SECTION - Premium Enhanced with Video Carousel
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    background: var(--gradient-purple);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.hero-video.active {
    opacity: 1;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 29, 58, 0.2) 0%, rgba(45, 53, 97, 0.2) 50%, rgba(0, 212, 161, 0.05) 100%);
    z-index: 10;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.highlight {
    color: var(--green-light);
    position: relative;
    display: inline;
}

.hero-text p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-features {
    list-style: none;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero-features li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
}

.hero-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-light);
    font-weight: bold;
    font-size: 20px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-cta {
    display: inline-block;
    background: var(--gradient-green);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 212, 161, 0.3);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 161, 0.5);
}

.hero-cta-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 50px 40px;
    animation: fadeInUp 1s ease-out 0.8s backwards;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 212, 161, 0.2);
    border-color: rgba(0, 212, 161, 0.3);
}

.hero-card h3 {
    font-size: 28px;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hero-card-cta:hover {
    gap: 18px;
}

.hero-card-cta svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.hero-card-cta:hover svg {
    transform: translateX(5px);
}

/* ===================================
   SERVICES SECTION - Premium Cards
   =================================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

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

.section-label {
    color: var(--green-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: block;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: 20px;
    padding: 50px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--green-primary);
}

.service-card h3 {
    font-size: 26px;
    color: var(--navy-purple);
    margin-bottom: 18px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--green-primary);
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 16px;
}

/* ===================================
   ABOUT SECTION - Premium
   =================================== */
.about-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 48px;
    color: var(--navy-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.about-content p {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 24px;
}

/* ===================================
   CTA SECTION - Premium Purple
   =================================== */
.cta-section {
    padding: 120px 0;
    background: var(--gradient-purple);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 245, 184, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.btn-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--navy-dark);
    padding: 18px 50px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

/* ===================================
   FOOTER - Premium White
   =================================== */
.footer {
    background: var(--white);
    padding: 90px 0 40px;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 24px;
}

.footer-col p {
    color: var(--text-medium);
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--navy-purple);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 14px;
}

.footer-col a {
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green-primary);
    transition: width 0.3s ease;
}

.footer-col a:hover::after {
    width: 100%;
}

.footer-col a:hover {
    color: var(--green-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--gray-200);
    color: var(--text-light);
    font-size: 14px;
}

/* ===================================
   PAGE HERO (Internal Pages)
   =================================== */
.page-hero {
    padding: 180px 0 100px;
    background: var(--gradient-purple);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 184, 0.08) 0%, transparent 70%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 60px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.page-hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===================================
   CONTACT FORM - Premium
   =================================== */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--navy-dark);
    margin-bottom: 10px;
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 161, 0.1);
}

.btn-primary {
    background: var(--gradient-green);
    color: var(--white);
    padding: 18px 50px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 212, 161, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 161, 0.4);
}

/* ===================================
   LEADERSHIP SECTION
   =================================== */
.leadership-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.leadership-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.leader-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.leader-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.leader-image:hover img {
    transform: scale(1.05);
}

.leader-info h3 {
    font-size: 36px;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.leader-title {
    font-size: 18px;
    color: var(--green-primary);
    font-weight: 600;
    margin-bottom: 30px;
}

.leader-bio p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}

.leader-credentials {
    margin-top: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    border-left: 4px solid var(--green-primary);
}

.leader-credentials h4 {
    font-size: 18px;
    color: var(--navy-purple);
    margin-bottom: 20px;
}

.leader-credentials ul {
    list-style: none;
}

.leader-credentials li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-medium);
    font-size: 15px;
}

.leader-credentials li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--green-primary);
    font-weight: bold;
}

/* ===================================
   VALUES SECTION
   =================================== */
.values-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.section-header.centered {
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.value-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--green-primary);
}

.value-card h3 {
    font-size: 24px;
    color: var(--navy-purple);
    margin-bottom: 16px;
}

.value-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ===================================
   IMPACT STATS SECTION
   =================================== */
.impact-stats-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-purple);
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.impact-stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 50px 40px;
    transition: all 0.4s ease;
    text-align: center;
}

.impact-stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--green-light);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-green);
    border-radius: 50%;
    color: var(--white);
}

.stat-icon svg {
    width: 48px;
    height: 48px;
}

.impact-stat-card h3 {
    font-size: 48px;
    font-weight: 700;
    color: var(--green-light);
    margin-bottom: 12px;
}

.impact-stat-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
}

.impact-stat-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-align: left;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 40px;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-cta,
    .hero-cta-secondary {
        text-align: center;
        width: 100%;
    }
    
    .page-hero h1 {
        font-size: 40px;
    }
    
    .section-header h2 {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .impact-stat-card h3 {
        font-size: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--navy-dark);
        margin: 3px 0;
        border-radius: 2px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 40px;
        box-shadow: var(--shadow-lg);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--green-primary);
    color: var(--white);
}
