/* ============================================
   Company Page Styles
   ============================================ */

/* Hero Section */
.company-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
}

.company-hero .hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.company-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gray-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Bridge Visual */
.bridge-visual {
    margin: 5rem auto 0;
    max-width: 800px;
}

.bridge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem;
}

.bridge-entity {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    text-align: center;
    min-width: 180px;
    position: relative;
    z-index: 2;
}

.bridge-entity-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

/* Puzzle piece styling */
.bridge-entity-icon.puzzle-a {
    border-radius: 16px 0 0 16px;
    clip-path: polygon(
        0% 0%,
        80% 0%,
        80% 35%,
        100% 35%,
        100% 65%,
        80% 65%,
        80% 100%,
        0% 100%
    );
    width: 70px;
}

.bridge-entity-icon.puzzle-b {
    border-radius: 0 16px 16px 0;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 100%,
        0% 100%,
        0% 65%,
        20% 65%,
        20% 35%,
        0% 35%
    );
    width: 70px;
}

.bridge-entity h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.bridge-entity p {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-bottom: 0;
}

.bridge-line {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    position: relative;
    min-width: 100px;
    max-width: 200px;
    border-radius: 2px;
}

.bridge-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: bridgeFlow 2s linear infinite;
    box-shadow: 0 0 20px var(--primary);
}

@keyframes bridgeFlow {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% - 20px); opacity: 0; }
}

.bridge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark);
    padding: 0.5rem;
    border-radius: 50%;
    border: 2px solid var(--primary);
    z-index: 3;
}

.bridge-logo-img {
    width: 40px;
    height: 40px;
    display: block;
}

/* Section Styling */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.section-desc {
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Mission Cards */
.mission-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mission-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}

.mission-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.mission-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Projects Section */
.projects-section {
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.project-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.project-status-live {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-status-coming {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-info p {
    color: var(--gray-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.project-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.project-bridge-entity {
    font-weight: 600;
    color: var(--primary-light);
}

.project-bridge-arrow {
    color: var(--gray);
}

.project-visual-mockup {
    border-radius: 20px;
    padding: 3rem 2.5rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-visual-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.mockup-content {
    text-align: center;
    z-index: 1;
    max-width: 500px;
    padding: 1rem;
    color: #ffffff;
}

.mockup-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff !important;
}

.mockup-content p {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ffffff !important;
}

.mockup-content p em {
    font-size: 0.9rem;
    opacity: 0.85;
}

.project-image {
    max-width: 250px;
    width: 100%;
    margin-top: 1.5rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Contact Section */
.contact-section {
    background: var(--dark-light);
    border-radius: 32px;
    padding: 5rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-light);
}

/* Footer */
.company-footer {
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--gray);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reveal Animation Override */
.company-page .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.company-page .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .company-hero {
        padding: 3rem 1rem 3rem !important;
        min-height: auto !important;
        align-items: flex-start !important;
        padding-top: 100px !important;
    }
    
    .company-hero h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .bridge-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .bridge-line {
        width: 4px;
        height: 60px;
        min-width: 4px;
        max-width: 4px;
    }
    
    .bridge-line::before {
        animation: bridgeFlowVertical 2s linear infinite;
    }
    
    @keyframes bridgeFlowVertical {
        0% { top: 0; left: 50%; transform: translateX(-50%); opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: calc(100% - 20px); left: 50%; transform: translateX(-50%); opacity: 0; }
    }
    
    .project-card {
        padding: 2rem;
    }
    
    .project-card .row {
        flex-direction: column;
    }
    
    .project-info {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .project-info h3 {
        font-size: 1.5rem;
    }
    
    .project-visual {
        margin-top: 1.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .mission-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Container padding adjustment */
    .company-page .container.px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 768px) {
    .company-hero {
        padding: 2rem 0.75rem 2rem !important;
        min-height: auto !important;
        align-items: flex-start !important;
        padding-top: 100px !important;
    }
    
    .company-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .bridge-visual {
        margin: 3rem auto 0;
    }
    
    .bridge-entity {
        padding: 1.5rem;
        min-width: 150px;
    }
    
    .bridge-entity-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .bridge-entity-icon.puzzle-a,
    .bridge-entity-icon.puzzle-b {
        width: 60px;
    }
    
    .contact-section {
        padding: 3rem 1.5rem;
        margin: 0 1rem;
    }
    
    .project-visual-mockup {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .mockup-content h4 {
        font-size: 1.35rem;
    }
    
    .mockup-content p {
        font-size: 0.9rem;
    }
    
    .project-bridge {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .project-bridge-entity {
        font-size: 0.9rem;
    }
    
    .project-image {
        max-width: 200px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    .mission-card {
        padding: 1.5rem;
    }
    
    .mission-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .company-hero {
        padding: 1.5rem 0.5rem 1.5rem !important;
        min-height: auto !important;
        align-items: flex-start !important;
        padding-top: 100px !important;
    }
    
    .company-hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .bridge-entity {
        padding: 1.25rem;
        min-width: 130px;
    }
    
    .bridge-entity h3 {
        font-size: 1rem;
    }
    
    .bridge-entity p {
        font-size: 0.8rem;
    }
    
    .bridge-logo-img {
        width: 30px;
        height: 30px;
    }
    
    .project-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .project-info h3 {
        font-size: 1.25rem;
    }
    
    .project-info p {
        font-size: 1rem;
    }
    
    .project-status {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
    
    .project-visual-mockup {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .mockup-content h4 {
        font-size: 1.15rem;
    }
    
    .project-image {
        max-width: 150px;
    }
    
    .section-label {
        font-size: 0.75rem;
    }
    
    .mission-card h3 {
        font-size: 1.1rem;
    }
    
    .mission-card p {
        font-size: 0.9rem;
    }
    
    .company-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}
