/* ========================================
   G3 Engagement Platform Styles
   ======================================== */

/* Base Engagement Styles */
.engagement-wrapper {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(105, 190, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(105, 190, 40, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, rgba(11, 20, 38, 0.98) 0%, rgba(11, 20, 38, 0.95) 100%);
}

/* Smooth scrolling for the entire engagement section */
.engagement-wrapper * {
    scroll-behavior: smooth;
}

/* Enhanced glass containers */
.glass-container {
    position: relative;
    overflow: hidden;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.glass-container:hover::before {
    opacity: 1;
    animation: shimmer 2s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Interactive Elements */
.interactive-element {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.interactive-element:nth-child(1) { animation-delay: 0.1s; }
.interactive-element:nth-child(2) { animation-delay: 0.2s; }
.interactive-element:nth-child(3) { animation-delay: 0.3s; }
.interactive-element:nth-child(4) { animation-delay: 0.4s; }

/* Capability Showcase Styles */
.capability-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.capability-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #69BE28;
    box-shadow: 
        0 20px 40px rgba(105, 190, 40, 0.2),
        inset 0 0 20px rgba(105, 190, 40, 0.1);
}

.capability-card .icon {
    font-size: 3rem;
    color: #69BE28;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.capability-card:hover .icon {
    transform: rotateY(180deg);
    text-shadow: 0 0 30px rgba(105, 190, 40, 0.5);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmerLoad 1.5s ease-in-out infinite;
}

@keyframes shimmerLoad {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Viewport Content Constraints */
.viewport-content {
    /* Ensure content uses max 90% of viewport width, full height */
    max-width: 90vw !important;
    max-height: 90vh !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Scrollbar styling for better UX */
.viewport-content::-webkit-scrollbar {
    width: 6px;
}

.viewport-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.viewport-content::-webkit-scrollbar-thumb {
    background: rgba(105, 190, 40, 0.3);
    border-radius: 3px;
}

.viewport-content::-webkit-scrollbar-thumb:hover {
    background: rgba(105, 190, 40, 0.5);
}

.viewport-content .max-w-7xl {
    /* Prevent oversized content containers */
    max-width: min(1280px, 85vw) !important;
}

.viewport-content h1 {
    /* Scale large headings for viewport */
    font-size: clamp(2rem, 5vw, 6rem) !important;
}

.viewport-content h2 {
    /* Scale medium headings for viewport */
    font-size: clamp(1.5rem, 3vw, 3rem) !important;
}

.viewport-content .grid {
    /* Ensure grids don't overflow */
    max-width: 100%;
    overflow: hidden;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .engagement-wrapper {
        padding-top: 80px;
    }
    
    .capability-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .glass-container {
        margin-bottom: 20px;
    }
    
    .viewport-content {
        max-width: 95vw !important;
        max-height: 100vh !important;
    }
    
    .viewport-content h1 {
        font-size: clamp(1.5rem, 8vw, 3rem) !important;
    }
    
    .viewport-content h2 {
        font-size: clamp(1.2rem, 6vw, 2rem) !important;
    }
}

/* Responsive Height-based Styles for Laptops */
@media (max-height: 900px) and (min-width: 769px) {
    /* Smaller headings */
    h1, .text-5xl, .text-6xl, .text-7xl, .text-8xl {
        font-size: clamp(2rem, 4vh, 3.5rem) !important;
    }
    
    h2, .text-3xl, .text-4xl {
        font-size: clamp(1.5rem, 3vh, 2.5rem) !important;
    }
    
    h3, .text-2xl {
        font-size: clamp(1.2rem, 2.5vh, 2rem) !important;
    }
    
    .text-xl {
        font-size: clamp(1rem, 2vh, 1.25rem) !important;
    }
    
    .text-lg {
        font-size: clamp(0.9rem, 1.8vh, 1.125rem) !important;
    }
    
    /* Reduce spacing */
    .mb-12 { margin-bottom: 2rem !important; }
    .mb-8 { margin-bottom: 1.5rem !important; }
    .mb-6 { margin-bottom: 1rem !important; }
    .mb-4 { margin-bottom: 0.75rem !important; }
    .py-8 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .py-6 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .p-8 { padding: 1.5rem !important; }
    .p-6 { padding: 1rem !important; }
    .p-4 { padding: 0.75rem !important; }
    .gap-8 { gap: 1.5rem !important; }
    .gap-6 { gap: 1rem !important; }
    
    /* Grid adjustments */
    .grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-height: 768px) and (min-width: 769px) {
    /* Even smaller headings */
    h1, .text-5xl, .text-6xl, .text-7xl, .text-8xl {
        font-size: clamp(1.75rem, 3.5vh, 3rem) !important;
    }
    
    h2, .text-3xl, .text-4xl {
        font-size: clamp(1.25rem, 2.5vh, 2rem) !important;
    }
    
    h3, .text-2xl {
        font-size: clamp(1rem, 2vh, 1.5rem) !important;
    }
    
    .text-xl {
        font-size: clamp(0.875rem, 1.5vh, 1rem) !important;
    }
    
    .text-lg, .text-base {
        font-size: clamp(0.75rem, 1.2vh, 0.875rem) !important;
    }
    
    .text-sm {
        font-size: clamp(0.7rem, 1vh, 0.75rem) !important;
    }
    
    /* Aggressive spacing reduction */
    .mb-12 { margin-bottom: 1.5rem !important; }
    .mb-8 { margin-bottom: 1rem !important; }
    .mb-6 { margin-bottom: 0.75rem !important; }
    .mb-4 { margin-bottom: 0.5rem !important; }
    .py-8 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    .py-6 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
    .p-8 { padding: 1rem !important; }
    .p-6 { padding: 0.75rem !important; }
    .p-4 { padding: 0.5rem !important; }
    .gap-8 { gap: 1rem !important; }
    .gap-6 { gap: 0.75rem !important; }
    .gap-4 { gap: 0.5rem !important; }
    
    /* Hide less critical elements */
    .nav-hint-modal { display: none !important; }
    
    /* Compact cards for Core Capabilities */
    .section-viewport[data-section="2"] .rounded-2xl {
        padding: 0.75rem !important;
    }
    
    .section-viewport[data-section="2"] h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .section-viewport[data-section="2"] .space-y-2 {
        gap: 0.25rem !important;
    }
    
    /* Compact "By The Numbers" section */
    .section-viewport[data-section="3"] .animate-gauge-spin {
        width: 80px !important;
        height: 80px !important;
    }
    
    .section-viewport[data-section="3"] .rounded-xl {
        padding: 0.5rem !important;
    }
    
    /* Security section adjustments */
    .section-viewport[data-section="4"] .rounded-2xl {
        padding: 1rem !important;
    }
    
    .section-viewport[data-section="4"] h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .section-viewport[data-section="4"] p {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }
}

/* Print Styles */
@media print {
    .navigation-controls,
    .progress-indicator-wrapper {
        display: none !important;
    }
    
    .engagement-wrapper {
        background: white;
        color: black;
    }
    
    .glass-container {
        border: 1px solid #ddd;
        background: white;
    }
}

/* ========================================
   Partner Journey Specific Styles
   ======================================== */

/* Wide Layout for Welcome Section */
.welcome-wide-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Dictionary Definition Styles */
.dictionary-definition {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(105, 190, 40, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.word-pronunciation {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.pronunciation {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #69BE28;
    font-weight: 400;
    letter-spacing: 1px;
}

.part-of-speech {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-left: 6px;
}

.definition {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 12px;
}

.definition-marker {
    color: #69BE28;
    font-weight: bold;
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Mission Statement Styles */
.mission-statement {
    margin: 0;
    text-align: left;
}

.mission-statement h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #69BE28;
    margin-bottom: 12px;
}

.mission-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.05) 0%, rgba(105, 190, 40, 0.02) 100%);
    border-radius: 12px;
    border-left: 4px solid #69BE28;
}

/* Company Approach Framework */
.approach-framework {
    margin: 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
}

.approach-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.approach-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.approach-item:hover::before {
    opacity: 1;
}

.approach-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(105, 190, 40, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(105, 190, 40, 0.15);
}

.approach-icon {
    font-size: 2.5rem;
    color: #69BE28;
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.approach-item:hover .approach-icon {
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(105, 190, 40, 0.6);
}

.approach-content {
    flex: 1;
}

.approach-item h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
}

.approach-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* Company Stats Enhanced */
.company-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: rgba(105, 190, 40, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(105, 190, 40, 0.1);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #69BE28;
    text-shadow: 0 0 20px rgba(105, 190, 40, 0.5);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* Enhanced Capabilities Styles */
.capabilities-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.capability-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.capability-card:hover {
    background: rgba(105, 190, 40, 0.1);
    border-color: #69BE28;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(105, 190, 40, 0.2);
}

.capability-icon {
    font-size: 4rem;
    color: #69BE28;
    margin-bottom: 20px;
}

.capability-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.capability-card ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.capability-card li {
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 0;
    font-size: 0.95rem;
}

.capability-card li::before {
    content: '→ ';
    color: #69BE28;
}

/* Performance Timeline */
.performance-timeline {
    margin: 50px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-icon {
    font-size: 3rem;
    color: #69BE28;
    min-width: 60px;
}

.timeline-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.impact {
    background: rgba(105, 190, 40, 0.2);
    color: #69BE28;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.performance-metrics {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.metric {
    text-align: center;
}

.metric h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #69BE28;
    margin-bottom: 10px;
}

.metric p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Innovation Lab Styles */
.innovation-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.research-area {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.research-area:hover {
    background: rgba(105, 190, 40, 0.1);
    transform: translateY(-5px);
}

.research-icon {
    font-size: 3.5rem;
    color: #69BE28;
    margin-bottom: 20px;
}

.research-area h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.lab-capabilities {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
}

.lab-feature {
    text-align: center;
}

.lab-feature i {
    font-size: 2.5rem;
    color: #69BE28;
    margin-bottom: 10px;
}

.lab-feature h4 {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
}

/* Partnership Styles */
.partnership-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.partnership-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.partnership-card:hover {
    background: rgba(105, 190, 40, 0.1);
    border-color: #69BE28;
    transform: translateY(-5px);
}

.partnership-card i {
    font-size: 3rem;
    color: #69BE28;
    margin-bottom: 20px;
}

.partnership-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.next-steps {
    text-align: center;
    margin-top: 60px;
    padding: 50px;
    background: linear-gradient(135deg, rgba(105, 190, 40, 0.1) 0%, rgba(105, 190, 40, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(105, 190, 40, 0.2);
}

.next-steps h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #69BE28;
    margin-bottom: 15px;
}

.cta-button {
    display: inline-block;
    background: #69BE28;
    color: #0B1426;
    padding: 18px 40px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #7FD534;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(105, 190, 40, 0.4);
    color: #0B1426;
}

.cta-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Partner Journey Mobile Responsive */
@media (max-width: 768px) {
    /* Stack columns on mobile */
    .welcome-wide-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Dictionary Definition Mobile */
    .dictionary-definition {
        padding: 20px;
        margin: 0;
    }
    
    .pronunciation {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .part-of-speech {
        font-size: 0.8rem;
    }
    
    .definition {
        font-size: 0.9rem;
        padding-left: 12px;
    }
    
    /* Mission Statement Mobile */
    .mission-statement {
        text-align: center;
    }
    
    .mission-statement h2 {
        font-size: 1.5rem;
    }
    
    .mission-text {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    /* Company Stats Mobile */
    .company-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .stat-item {
        padding: 8px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Approach Framework Mobile */
    .approach-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .approach-icon {
        font-size: 2rem;
    }
    
    .approach-item h3 {
        font-size: 1.1rem;
    }
    
    .approach-item p {
        font-size: 0.8rem;
    }

    .highlight-grid,
    .capabilities-showcase,
    .innovation-areas,
    .partnership-models {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-stats,
    .performance-metrics,
    .lab-capabilities {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .timeline-icon {
        min-width: auto;
    }
}