/* about.css - Advanced Styling for About Page */

/* --- Elegant Light Hero Section --- */
.about-hero {
    position: relative;
    height: 100vh;
    min-height: 900px;
    display: flex;
    align-items: center;
    padding: 10rem 5% 0; /* Solves navbar overlap */
    overflow: hidden;
    background: #ffffff;
}

.about-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
    background: #fdfdfd; 
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate ease-in-out;
    z-index: 1;
}

.orb-1 {
    width: 60vw; height: 60vw;
    top: -20%; left: -10%;
    background: rgba(96, 165, 250, 0.3); /* Soft blue */
    animation-delay: 0s;
}

.orb-2 {
    width: 50vw; height: 50vw;
    bottom: -10%; right: -10%;
    background: rgba(167, 139, 250, 0.25); /* Soft purple */
    animation-delay: -5s;
}

.orb-3 {
    width: 40vw; height: 40vw;
    top: 30%; left: 40%;
    background: rgba(52, 211, 153, 0.15); /* Soft mint */
    animation-delay: -10s;
}

.mesh-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 5%) scale(1.05); }
    66% { transform: translate(-5%, 8%) scale(0.95); }
    100% { transform: translate(2%, -5%) scale(1); }
}

.hero-3d-scene {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    perspective: 1500px;
}

.float-obj {
    position: absolute;
    border-radius: 40px;
    object-fit: cover;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
    filter: brightness(1.05) contrast(1.05);
}

.obj-1 { width: 400px; height: 550px; top: 15%; right: 8%; z-index: 4; border-radius: 300px 300px 0 0; }
.obj-2 { width: 300px; height: 350px; bottom: 10%; right: 35%; z-index: 5; border-radius: 200px; }

.about-hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.4rem;
    background: #f8fafc;
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.hero-badge .material-icons {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.hero-badge span:last-child {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.about-hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 3.5rem;
    font-weight: 400;
}

.hero-action-bar {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-quick-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hq-divider {
    width: 1px;
    height: 40px;
    background: rgba(0,0,0,0.1);
}

.hq-stat {
    display: flex;
    flex-direction: column;
}

.hq-stat strong {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-primary);
    line-height: 1;
}

.hq-stat span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

/* Mobile Hero adjustments */
@media (max-width: 1024px) {
    .about-hero { padding-top: 8rem; align-items: flex-start; }
    .hero-action-bar { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .obj-1 { width: 250px; height: 350px; right: 5%; top: 20%; opacity: 0.5; }
    .obj-2 { display: none; }

    @media (max-width: 480px) {
        .about-hero { padding-top: 6rem; height: auto; min-height: 100vh; }
        .about-hero-title { font-size: 2.2rem; line-height: 1.1; }
        .about-hero-subtitle { font-size: 1rem; margin-bottom: 2rem; }
        .hero-badge { margin-bottom: 1.5rem; }
        .hero-action-bar { gap: 1.5rem; }
        .hq-stat strong { font-size: 1.5rem; }
        .ac-para { font-size: 1rem; }
        .ac-heading { font-size: 2rem; }
    }
}


/* --- Expansive Content Section --- */
.about-content-section {
    padding: 12rem 5%;
    background: #ffffff;
    position: relative;
    z-index: 20;
}

.ac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.ac-text-side {
    max-width: 600px;
}

.ac-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.ac-para {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.ac-list {
    list-style: none;
    margin-top: 3rem;
    padding: 0;
}

.ac-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.ac-list .material-icons {
    color: var(--accent-blue);
}

.ac-image-side {
    position: relative;
    height: 800px;
    display: flex;
    justify-content: center;
}

.ac-img-wrapper {
    position: absolute;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.ac-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-1 {
    width: 80%;
    height: 60%;
    top: 5%;
    left: 0;
    z-index: 2;
}

.img-2 {
    width: 70%;
    height: 55%;
    bottom: 5%;
    right: 0;
    z-index: 3;
}

@media (max-width: 1024px) {
    .ac-grid { grid-template-columns: 1fr; gap: 4rem; }
    .ac-image-side { height: 600px; }
    .img-1, .img-2 { width: 85%; }
}


/* --- Philosophy Banner --- */
.philosophy-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phil-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.phil-bg img {
    width: 100%;
    height: 130%; /* For parallax leeway */
    object-fit: cover;
    filter: brightness(0.4);
}

.philosophy-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
}

.phil-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.phil-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* --- Innovation & Impact Section --- */
.impact-section {
    padding: 10rem 5%;
    background: #fdfdfd;
    position: relative;
    z-index: 20;
}

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

.impact-header-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.impact-header-block h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.impact-header-block p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.teams-grid-3d {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    perspective: 2000px;
}

.team-card-3d {
    position: relative;
    width: 100%;
    height: 550px;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.card-bg {
    position: absolute;
    inset: 0;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

.team-card-3d:hover .card-bg {
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.card-3d-model {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) translateZ(60px);
    width: 250px;
    height: 250px;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-3d-model img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.team-card-3d:hover .card-3d-model {
    transform: translateX(-50%) translateZ(120px) scale(1.05);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
    transform: translateZ(40px);
    text-align: center;
}

.card-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.card-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .teams-grid-3d { grid-template-columns: 1fr; gap: 4rem; }
    .impact-section { padding: 8rem 5%; margin-top: 5rem; }
    .team-card-3d { height: 450px; }
    .card-3d-model { width: 180px; height: 180px; }
}

/* --- Advanced 3D FAQ Section --- */
.faq-section {
    padding: 12rem 5%;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.faq-header {
    text-align: center;
    margin-bottom: 5rem;
}

.faq-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.faq-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.faq-wrapper {
    position: relative;
}

/* 3D Decorative bits behind FAQ */
.faq-3d {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
}

.faq-3d .material-icons {
    font-size: 5rem;
    color: var(--accent-blue);
    opacity: 0.5;
    transform: rotate(-45deg);
}

.faq-3d-1 { top: -50px; left: -150px; }
.faq-3d-2 { bottom: 100px; right: -150px; }

@media (max-width: 1024px) {
    .faq-3d { display: none; }
}

.faq-list {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.faq-item.active {
    background: #ffffff;
    border-color: var(--accent-blue);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 2rem 2.5rem;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.faq-item.active .faq-question {
    color: var(--accent-blue);
}

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: var(--accent-blue);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* turns plus into cross */
}

/* Base state for GSAP height animation */
.faq-answer {
    height: 0;
    overflow: hidden;
}

.faq-answer-inner {
    padding: 0 2.5rem 2.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
