/* About Page Specific Styles */

.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2A5CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.3rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

/* Who We Are Section */
.who-we-are {
    padding: 100px 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text h2 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2A5CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #F8FAFF;
    border-radius: 12px;
    border-left: 4px solid #2A5CFF;
}

.credential-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2A5CFF 0%, #7A3FFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.credential-icon svg {
    width: 20px;
    height: 20px;
}

.credential-item span {
    font-weight: 600;
    color: #333;
}

/* Expertise Circle */
.content-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.expertise-circle {
    position: relative;
    width: 400px;
    height: 400px;
}

.expertise-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #2A5CFF 0%, #7A3FFF 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(42, 92, 255, 0.3);
}

.expertise-center h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.expertise-center p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.expertise-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 60px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #E8F2FF;
    transform: translate(-50%, -50%) rotate(var(--rotation)) translate(180px) rotate(calc(-1 * var(--rotation)));
    animation: float 6s ease-in-out infinite;
}

.expertise-node span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2A5CFF;
    text-align: center;
}

.expertise-node:nth-child(2) { animation-delay: -1s; }
.expertise-node:nth-child(3) { animation-delay: -2s; }
.expertise-node:nth-child(4) { animation-delay: -3s; }
.expertise-node:nth-child(5) { animation-delay: -4s; }
.expertise-node:nth-child(6) { animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(var(--rotation)) translate(180px) rotate(calc(-1 * var(--rotation))) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(var(--rotation)) translate(180px) rotate(calc(-1 * var(--rotation))) translateY(-10px); }
}

/* Our Approach Section */
.our-approach {
    padding: 100px 0;
    background: #FAFAFA;
}

.approach-diagram {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.approach-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #F5F5F5;
    transition: all 0.3s ease;
}

.approach-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A5CFF 0%, #7A3FFF 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.5rem;
}

.step-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.step-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-features span {
    padding: 8px 16px;
    background: #F8FAFF;
    color: #2A5CFF;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #E8F2FF;
}

.approach-arrow {
    display: flex;
    justify-content: center;
    color: #2A5CFF;
    margin: 1rem 0;
}

.approach-arrow svg {
    width: 30px;
    height: 30px;
    transform: rotate(90deg);
}

/* Team Knowledge Section */
.team-knowledge {
    padding: 100px 0;
    background: white;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.knowledge-area {
    padding: 2.5rem;
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%);
    border-radius: 16px;
    border: 1px solid #E8F2FF;
    transition: all 0.3s ease;
    text-align: center;
}

.knowledge-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(42, 92, 255, 0.15);
}

.knowledge-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2A5CFF 0%, #7A3FFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.knowledge-icon svg {
    width: 40px;
    height: 40px;
}

.knowledge-area h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.3rem;
}

.knowledge-area p {
    line-height: 1.7;
    color: #666;
}

/* Footer Overrides for Light Theme */
.footer {
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F4FF 100%) !important;
    color: #333 !important;
    border-top: 1px solid #E8F2FF !important;
}

.footer-brand p {
    color: #666666 !important;
}

.link-group h4 {
    color: #2A5CFF !important;
    font-weight: 600 !important;
}

.link-group a {
    color: #666666 !important;
}

.link-group a:hover {
    color: #2A5CFF !important;
}

.link-group p {
    color: #666666 !important;
}

.footer-bottom {
    border-top: 1px solid #E8F2FF !important;
}

.footer-bottom p {
    color: #999999 !important;
}

/* Mobile Navigation Fix - Higher Specificity */
@media (max-width: 768px) {
    body .navbar .container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 1rem 20px !important;
        box-sizing: border-box;
    }
    
    body .navbar .nav-toggle {
        position: relative !important;
        z-index: 1001;
        margin-left: auto;
        flex-shrink: 0;
        right: 0;
        display: flex;
    }
    
    /* Prevent horizontal overflow on about page */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Ensure navbar doesn't extend beyond viewport */
    body .navbar {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: visible; /* Changed to visible for mobile menu */
    }
    
    /* Ensure mobile navigation menu works properly */
    body .nav-menu {
        position: fixed !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        z-index: 999 !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
    }
    
    body .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .content-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .expertise-circle {
        width: 300px;
        height: 300px;
        max-width: calc(100vw - 40px);
        position: relative;
        margin: 0 auto;
    }
    
    .expertise-center {
        width: 120px;
        height: 120px;
    }
    
    .expertise-center h3 {
        font-size: 1.2rem;
    }
    
    .expertise-center p {
        font-size: 0.8rem;
    }
    
    .expertise-node {
        width: 100px;
        height: 50px;
        transform: translate(-50%, -50%) rotate(var(--rotation)) translate(100px) rotate(calc(-1 * var(--rotation)));
    }
    
    .expertise-node span {
        font-size: 0.8rem;
    }
    
    /* Mobile-specific animation with optimal distance */
    @keyframes float {
        0%, 100% { transform: translate(-50%, -50%) rotate(var(--rotation)) translate(100px) rotate(calc(-1 * var(--rotation))) translateY(0); }
        50% { transform: translate(-50%, -50%) rotate(var(--rotation)) translate(100px) rotate(calc(-1 * var(--rotation))) translateY(-8px); }
    }
    
    .approach-step {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-arrow {
        transform: rotate(0deg);
    }
    
    .approach-arrow svg {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    body .navbar .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 15px !important;
        box-sizing: border-box;
    }
    
    body .navbar .nav-toggle {
        position: relative !important;
        z-index: 1001;
        margin-left: auto;
        flex-shrink: 0;
        right: 0;
        display: flex;
    }
    
    /* Ensure mobile navigation menu works on small screens */
    body .nav-menu {
        position: fixed !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        z-index: 999 !important;
    }
    
    body .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .content-visual {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .expertise-circle {
        width: 250px;
        height: 250px;
        max-width: calc(100vw - 30px);
        position: relative;
        margin: 0 auto;
    }
    
    .expertise-center {
        width: 100px;
        height: 100px;
    }
    
    .expertise-center h3 {
        font-size: 1rem;
    }
    
    .expertise-node {
        width: 80px;
        height: 40px;
        transform: translate(-50%, -50%) rotate(var(--rotation)) translate(80px) rotate(calc(-1 * var(--rotation)));
    }
    
    .expertise-node span {
        font-size: 0.7rem;
    }
    
    /* Small mobile-specific animation with optimal distance */
    @keyframes float {
        0%, 100% { transform: translate(-50%, -50%) rotate(var(--rotation)) translate(80px) rotate(calc(-1 * var(--rotation))) translateY(0); }
        50% { transform: translate(-50%, -50%) rotate(var(--rotation)) translate(80px) rotate(calc(-1 * var(--rotation))) translateY(-6px); }
    }
    
    .approach-step {
        padding: 2rem;
    }
    
    .knowledge-area {
        padding: 2rem;
    }
    
    .step-features {
        justify-content: center;
    }
}
