/* --- GLOBAL UTILITIES FOR THIS PAGE --- */
.text-center { text-align: center; margin: 0 auto; }
.text-left { text-align: left; }
.bg-light { background-color: var(--light-bg); }
.text-blue { color: var(--primary-blue); }

/* --- SECTION 1: FIRM HERO --- */
.firm-hero {
    background-color: var(--white);
    padding: 120px 24px 80px 24px;
    border-bottom: 1px solid #eaeaea;
}

.firm-hero-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-blue);
    margin: 15px 0 20px 0;
    line-height: 1.2;
}

.firm-hero-desc {
    font-size: 20px;
    color: var(--secondary-grey);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- SECTION 2: OUR STORY --- */
.our-story {
    padding: 100px 0;
    background-color: var(--white);
}

.story-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.story-content {
    flex: 1;
}

.story-text {
    font-size: 16px;
    color: var(--secondary-grey);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* --- THE 3-IMAGE GALLERY GRID --- */
/* --- HORIZONTAL INTERLOCKING TEAM GALLERY --- */
.team-gallery-horizontal {
    flex: 1.2; /* Gives the team a bit more room on the right side */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 20px;
}

/* Individual Profile Container */
.team-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

/* The Magic Trick: Pull the side profiles IN to create the overlap */
.advisor-profile:first-child {
    margin-right: -40px; 
}
.advisor-profile:last-child {
    margin-left: -40px; 
}

/* Bring the Founder forward and make them slightly larger */
.center-profile {
    z-index: 2;
    transform: scale(1.08); 
}

.center-profile:hover {
    transform: scale(1.12);
}

.advisor-profile:hover {
    transform: translateY(-10px);
    z-index: 3; /* Pops them over the founder if hovered */
}

/* The Premium Gold Shaped Frame */
.profile-frame {
    width: 200px;
    height: 260px;
    border-radius: 40px; /* Creates the smooth modern squircle shape */
    border: 4px solid #D4AF37; /* Premium Gold Accent */
    padding: 6px; /* Creates the gap between the gold ring and the image */
    background-color: var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    position: relative;
}

/* The Image Inside the Frame */
.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px; /* Curves the image to fit perfectly inside the padding */
}

/* The Name and Designation Card */
.profile-info {
    background-color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    /* Negative margin pulls the name badge slightly up into the image for a 3D effect */
    margin-top: -15px; 
    z-index: 2;
    position: relative;
}

.profile-name {
    font-size: 17px;
    color: var(--dark-text);
    margin-bottom: 5px;
    font-weight: 800;
    white-space: nowrap; /* Keeps names on one line */
}

.profile-role {
    font-size: 12px;
    color: var(--primary-blue); /* Your signature Navy Blue */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
}

/* --- MOBILE RESPONSIVENESS FOR TEAM --- */
@media (max-width: 1200px) {
    /* Slightly scale down on smaller laptops so they don't squish */
    .profile-frame {
        width: 160px;
        height: 160px;
    }
    .advisor-profile:first-child { margin-right: -25px; }
    .advisor-profile:last-child { margin-left: -25px; }
}

@media (max-width: 992px) {
    /* Stack them vertically on mobile and tablets */
    .profile-frame {
        width: 160px;
        height: 200px;
    }
    .team-gallery-horizontal {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }
    .advisor-profile:first-child { margin-right: 0; }
    .advisor-profile:last-child { margin-left: 0; }
    
    .center-profile {
        transform: scale(1); /* Reset scaling for mobile */
    }
    .center-profile:hover {
        transform: translateY(-5px);
    }
}
/* --- SECTION 3: CORE VALUES --- */
.core-values {
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0 auto;
    padding: 0 24px;
}

.value-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
}

.value-icon {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.value-title {
    font-size: 20px;
    color: var(--dark-text);
    margin-bottom: 15px;
}

/* --- SECTION 4: THE DIFFERENCE --- */
.the-difference {
    padding: 100px 0;
    background-color: var(--white);
}

.difference-container {
    max-width: 800px; /* Kept narrow for easy reading */
    margin: 0 auto;
    padding: 0 24px;
}

.difference-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.diff-item {
    background-color: var(--light-bg);
    padding: 25px 30px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary-grey);
}

.diff-item i {
    margin-top: 5px;
    font-size: 18px;
}

.diff-item strong {
    color: var(--dark-text);
}

/* --- SECTION 5: FINAL CTA --- */
.page-cta {
    background-color: var(--primary-blue);
    padding: 80px 24px;
    color: var(--white);
}

.cta-heading {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-subheading {
    font-size: 18px;
    color: #d1d8ec;
    margin-bottom: 35px;
}

.btn-primary-large {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary-large:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .story-container {
        flex-direction: column;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .firm-hero-title { font-size: 36px; }
    .values-grid { grid-template-columns: 1fr; }
    .story-image { margin-top: 30px; }
    .diff-item { flex-direction: column; }
    .diff-item i { margin-bottom: 10px; }
}
/* --- SOFTWARE & TOOLS SECTION --- */
.software-tools {
    padding: 100px 0;
    /* We use bg-light (grey) to separate it from the white section above it */
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates a perfect 2-column layout */
    gap: 30px;
    max-width: 1000px; /* Keeps the cards from stretching too wide */
    margin: 50px auto 0 auto;
    padding: 0 24px;
}

.tool-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.tool-icon {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.tool-title {
    font-size: 20px;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.tool-desc {
    font-size: 15px;
    color: var(--secondary-grey);
    line-height: 1.6;
    margin: 0;
}

/* --- MOBILE RESPONSIVENESS FOR TOOLS GRID --- */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr; /* Stacks into a single column on small screens */
    }
}