body {
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    color: #333;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #053b72;
}


/* Navigation font styling */
nav,
nav a,
.logo h1,
.logo span {
    font-family: 'Montserrat', sans-serif;
}

nav a {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-container p {
    line-height: 1.6;
}

.about-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* About Us Page Specific Styling */
:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --gold: #D4AF37;
    --light-gold: #F5EEC8;
    --white: #ffffff;
}

/* General Section Styling */
.journey-section, .philosophy-section, .team-section, 
.standards-section, .service-area-detail, .about-cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Alternating section backgrounds with subtle gradients */
.journey-section, .team-section {
    background: linear-gradient(to right, var(--primary-black) 0%, rgba(15, 15, 15, 1) 100%);
}

.philosophy-section, .standards-section {
    background: linear-gradient(to right, rgba(30, 30, 30, 1) 0%, var(--secondary-black) 100%);
}

.about-cta {
    background: linear-gradient(135deg, var(--primary-black), var(--secondary-black), var(--primary-black));
}

/* Section titles with elegant underlines */
section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    color: var(--gold);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* Journey Section */
.journey-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.journey-text {
    flex: 1 1 500px;
}

.journey-text p {
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--white);
    opacity: 0.9;
}

.journey-text p:last-child {
    margin-bottom: 0;
}

.journey-image {
    flex: 0 1 450px;
    position: relative;
}

.founder-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(1.05);
}

.founder-image:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.5);
}

.journey-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    z-index: -1;
    opacity: 0.6;
}

.journey-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    z-index: -1;
    opacity: 0.6;
}

/* Philosophy Section */
.philosophy-content {
    position: relative;
    padding: 20px 0;
}

.gold-quote {
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--gold);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 70px;
    padding: 30px;
    position: relative;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gold-quote::before, .gold-quote::after {
    content: '"';
    font-size: 80px;
    position: absolute;
    color: rgba(212, 175, 55, 0.15);
    font-family: 'Georgia', serif;
    line-height: 0;
}

.gold-quote::before {
    top: 30px;
    left: -20px;
}

.gold-quote::after {
    bottom: -10px;
    right: -20px;
}

.philosophy-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 70px;
}

.philosophy-column {
    padding: 40px 30px;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    border-bottom: 3px solid var(--gold);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.philosophy-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.philosophy-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.philosophy-column:hover::before {
    transform: scaleX(1);
}

.philosophy-column h3 {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-column i {
    margin-right: 12px;
    font-size: 24px;
}

.philosophy-column p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--white);
    opacity: 0.9;
}

/* Team Section */
.team-section {
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.team-member {
    background-color: rgba(26, 26, 26, 0.4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    will-change: transform;
}

.team-member::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transform: scaleX(0.3);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.7;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.team-member:hover::after {
    transform: scaleX(1);
}

.member-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.member-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover .member-image::before {
    opacity: 1;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.team-member:hover .member-image img {
    transform: scale(1.08);
}

.team-member h3 {
    padding: 25px 25px 5px;
    color: var(--gold);
    font-size: 24px;
    margin: 0;
    transition: color 0.3s ease;
}

.team-member:hover h3 {
    color: var(--light-gold);
}

.member-title {
    color: var(--white);
    opacity: 0.8;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 25px;
    margin: 0 0 15px;
}

.member-bio {
    padding: 0 25px 30px;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    color: var(--white);
    opacity: 0.9;
}

/* Standards Section */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.standard-item {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 40px 35px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.standard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--gold);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.standard-item:hover {
    transform: translateY(-8px);
    background-color: rgba(212, 175, 55, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.standard-item:hover::before {
    opacity: 1;
}

.standard-icon {
    font-size: 30px;
    color: var(--gold);
    margin-right: 25px;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
}

.standard-item:hover .standard-icon {
    transform: scale(1.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.standard-content h3 {
    margin-top: 0;
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 15px;
}

.standard-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--white);
    opacity: 0.9;
}

/* About CTA Section */
.about-cta {
    text-align: center;
    padding: 100px 0;
}

.about-cta h2 {
    font-size: 46px;
    margin-bottom: 25px;
}

.about-cta p {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 20px;
    line-height: 1.7;
    color: var(--white);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.cta-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 0;
}

.cta-button:hover::after {
    transform: translateY(0);
}

.cta-button.primary {
    background-color: var(--gold);
    color: var(--primary-black);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.cta-button.primary:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.cta-button.secondary:hover {
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Single team member featured styling */
.single-team-display {
    max-width: 900px;
    margin: 0 auto;
}

.team-member.featured {
    display: flex;
    flex-direction: column;
    background-color: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: none;
}

.team-member.featured .member-image {
    height: 400px;
}

.team-member.featured .member-info {
    padding: 30px 40px 40px;
    text-align: center;
}

.team-member.featured h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

.team-member.featured .member-title {
    font-size: 16px;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
}

.team-member.featured .member-bio {
    font-size: 17px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
}

.member-credentials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.member-credentials span {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 14px;
    color: var(--white);
}

.member-credentials i {
    color: var(--gold);
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-member.featured .member-image {
        height: 350px;
    }
    
    .team-member.featured h3 {
        font-size: 28px;
    }
    
    .team-member.featured .member-info {
        padding: 25px 30px 30px;
    }
    
    .member-credentials {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* Mobile Enhancements for about.css */

/* 1. Better Touch Targets for Mobile */
@media (max-width: 768px) {
    /* Improve button touch targets */
    .cta-button {
        padding: 15px 30px !important;
        min-height: 44px !important;
        min-width: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 8px !important;
        font-size: 16px !important;
    }
    
    /* Improve icon touch targets */
    .standard-icon, 
    .social-icon,
    .member-credentials span {
        min-height: 44px !important;
        min-width: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Fix standard items for better touch */
    .standard-item {
        padding: 30px 20px !important;
    }
}

/* 2. Fix Disproportionate Elements on Small Screens */
@media (max-width: 576px) {
    /* Make quotes more proportional */
    .gold-quote {
        font-size: 18px !important;
        padding: 10px 20px !important;
        margin-bottom: 30px !important;
    }
    
    /* Fix oversized quote marks */
    .gold-quote::before, 
    .gold-quote::after {
        font-size: 40px !important;
    }
    
    .gold-quote::before {
        top: 15px !important;
        left: -10px !important;
    }
    
    .gold-quote::after {
        bottom: -5px !important;
        right: -10px !important;
    }
    
    /* Make team member images responsive */
    .member-image {
        height: auto !important;
        aspect-ratio: 1 / 1.2 !important;
    }
    
    /* Fix font sizes for very small screens */
    section h2 {
        font-size: 26px !important;
        margin-bottom: 30px !important;
    }
    
    .team-member h3 {
        font-size: 20px !important;
        padding: 20px 20px 5px !important;
    }
    
    .member-bio {
        font-size: 15px !important;
        line-height: 1.6 !important;
        padding: 0 20px 25px !important;
    }
}

/* 3. Add Safe Area Insets for Modern Phones */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .journey-section, 
        .philosophy-section, 
        .team-section, 
        .standards-section, 
        .about-cta {
            padding-left: max(20px, env(safe-area-inset-left)) !important;
            padding-right: max(20px, env(safe-area-inset-right)) !important;
        }
        
        .about-cta {
            padding-bottom: max(30px, env(safe-area-inset-bottom)) !important;
        }
    }
}

/* 4. Improve Mobile Layout Flow */
@media (max-width: 768px) {
    /* Better spacing for journey section */
    .journey-content {
        flex-direction: column;
        gap: 40px !important;
    }
    
    /* Center founder image */
    .journey-image {
        margin: 0 auto !important;
        max-width: 350px !important;
    }
    
    /* Fix grid layouts for small screens */
    .philosophy-columns,
    .standards-grid,
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 10px !important;
    }
    
    /* Center standard items on mobile */
    .standard-item {
        text-align: center !important;
        flex-direction: column !important;
    }
    
    .standard-icon {
        margin: 0 auto 20px !important;
    }
    
    /* Improve CTA section on mobile */
    .about-cta {
        padding: 70px 20px !important;
    }
    
    .about-cta h2 {
        font-size: 30px !important;
        margin-bottom: 20px !important;
    }
    
    .about-cta p {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
}

/* 5. Optimize Animations for Mobile Performance */
@media (max-width: 768px) {
    /* Simplify or remove animations that might cause lag */
    .journey-image::before,
    .journey-image::after {
        display: none !important; /* Remove decorative elements */
    }
    
    .team-member:hover .member-image img {
        transform: none !important; /* Remove hover animation */
    }
    
    .philosophy-column::before {
        display: none !important; /* Remove animation effects */
    }
    
    /* Use more efficient properties */
    .team-member,
    .philosophy-column,
    .standard-item {
        will-change: auto !important; /* Only use will-change when absolutely needed */
        transition: transform 0.3s ease !important; /* Simplify transitions */
    }
    
    /* Remove animation delays that might cause perceived lag */
    .philosophy-column:nth-child(n),
    .team-member:nth-child(n),
    .standard-item:nth-child(n) {
        transition-delay: 0s !important;
    }
}

/* 6. Fix Mobile Navigation */
@media (max-width: 768px) {
    /* Match navigation with home.css */
    header {
        flex-direction: column;
        padding: 15px 0;
        align-items: center;
        justify-content: center;
        z-index: 100;
    }
    
    .logo {
        margin: 0;
        margin-bottom: 10px;
    }
    
    .logo h1 {
        margin: 0;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Center aligned header for mobile */
    header {
        flex-direction: column;
        padding: 15px 0;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove right margin from logo */
    .logo {
        margin: 0;
        margin-bottom: 10px;
    }
    
    .logo h1 {
        margin: 0; /* Remove left margin */
    }
    
    /* Center the mobile toggle button */
    .mobile-menu-toggle {
        display: block;
        margin: 10px 0 0;
        position: relative;
    }
    
    /* Center text in menu items */
    nav li {
        margin: 0;
        text-align: center;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-black);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }
    
    nav ul.open {
        max-height: 300px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }
    
    nav li {
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Add animations for different items with staggered timing */
.philosophy-column:nth-child(2) {
    transition-delay: 0.2s;
}

.philosophy-column:nth-child(3) {
    transition-delay: 0.4s;
}

.team-member:nth-child(2) {
    transition-delay: 0.2s;
}

.team-member:nth-child(3) {
    transition-delay: 0.4s;
}

.standard-item:nth-child(2) {
    transition-delay: 0.2s;
}

.standard-item:nth-child(3) {
    transition-delay: 0.4s;
}

.standard-item:nth-child(4) {
    transition-delay: 0.6s;
}

/* Accessibility focus states */
a:focus, button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}