/* About Section CSS - Premium Redesign */

#about-section {
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* Background Accents */
#about-section::before {
    content: '';
    position: absolute;
    top: 15%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-story {
    margin-bottom: 100px;
    position: relative;
    z-index: 1;
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-image-stack {
    position: relative;
    padding: 20px;
}

.about-image-main {
    width: 100%;
    mask-image: var(--rough-mask);
    -webkit-mask-image: var(--rough-mask);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    z-index: 2;
    position: relative;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -20px;
    width: 60%;
    mask-image: var(--rough-mask);
    -webkit-mask-image: var(--rough-mask);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    background-color: var(--bg-color);
    border: 8px solid var(--bg-color);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    z-index: 3;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Premium Cards with Glassmorphism */
.company-philosophy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.philosophy-item {
    padding: 50px 40px;
    background: #ffffff;
    border: 1px solid rgba(184, 134, 11, 0.1);
    mask-image: var(--rough-mask);
    -webkit-mask-image: var(--rough-mask);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.philosophy-item:hover {
    transform: translateY(-12px);
    filter: drop-shadow(0 30px 60px rgba(104, 68, 36, 0.15));
    border-color: var(--brand-gold);
}

.philosophy-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 25px;
    filter: sepia(0.5) saturate(0.5) opacity(0.8);
}

.philosophy-item ul {
    margin-top: 15px !important;
}

.philosophy-item ul li {
    font-weight: 500;
}

.philosophy-item i {
    font-size: 3.5rem;
    color: var(--brand-brown);
    margin-bottom: 30px;
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.philosophy-item:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.philosophy-item h3 {
    font-size: 1.4rem;
    color: var(--brand-brown);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Team Section Enhancements */
.team-container {
    padding: 0px 0;
    position: relative;
}

.team-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1600 800'%3E%3Cpath fill='none' stroke='rgba(184, 134, 11, 0.1)' stroke-width='2' d='M0,400 C200,300 400,500 600,400 C800,300 1000,500 1200,400 C1400,300 1600,500 1600,400'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.team-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.team-text h2 {
    font-size: 2.5rem;
    color: var(--brand-brown);
    margin-bottom: 15px;
}

.team-text .subtitle {
    font-size: 1.2rem;
    color: var(--brand-brown);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
    font-weight: bold;
}

.team-intro {
    margin-top: 40px;
}

.team-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

.founder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.founder-card {
    padding: 10px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(184, 134, 11, 0.1);
    box-shadow: 0 15px 35px rgba(104, 68, 36, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

/* Premium top accent line */
.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--brand-gold), var(--brand-brown));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.founder-card:hover::before {
    opacity: 1;
}

.founder-image {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.user-icon-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8e1d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold);
    font-size: 4rem;
    transition: all 0.5s ease;
}

.founder-card:hover .user-icon-placeholder {
    background: var(--brand-brown);
    color: #fff;
}

.founder-card:hover .founder-image img {
    transform: scale(1.1);
}

.founder-info {
    padding: 20px;
    text-align: center;
    background: transparent;
    width: 100%;
}

.founder-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.founder-card h5 {
    font-size: 1.15rem;
    color: var(--brand-brown);
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.founder-info span {
    font-size: 0.8rem;
    color: var(--brand-brown);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Premium Dividers */
.premium-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--brand-gold), var(--brand-brown));
    margin: 20px auto 40px;
    border-radius: 2px;
}

/* Video Showcase Styles */
.video-showcase {
    margin: 50px auto 0;
    width: 100%;
    max-width: 850px;
    /* Reduced from 100% */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    background: #000;
}

.video-showcase video {
    width: 100%;
    height: auto;
    display: block;
}

/* Toggle visibility based on screen size */
.mobile-video {
    display: none !important;
}

.desktop-video {
    display: block !important;
}

@media (max-width: 768px) {
    .desktop-video {
        display: none !important;
    }

    .mobile-video {
        display: block !important;
    }

    .video-showcase {
        margin-top: 30px;
        border-radius: 12px;
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {

    /* CSS specific to iOS devices */
    .philosophy-item {
        background: rgba(255, 255, 255, 0.85);
        /* Fallback for older iOS */
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-left: 0; /* Removed asymmetric padding */
    }

    .founder-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .company-philosophy {
        gap: 25px;
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns on tablet */
    }
}

@media (max-width: 768px) {
    #about-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .philosophy-item {
        padding: 40px 25px;
        width: 100%; /* Ensure full width in grid */
    }

    .team-text h2 {
        font-size: 2.0rem;
    }

    .company-philosophy {
        grid-template-columns: 1fr !important; /* Force 1 column on mobile */
        width: 100%;
    }
}

@media (max-width: 600px) {
    .about-story {
        margin-bottom: 50px;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-text p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .about-image-accent {
        width: 70%;
        bottom: -30px;
        right: -5px;
    }

    .about-image-stack {
        max-width: 95%;
        margin: 20px auto 0;
        padding: 5px;
    }

    .about-story-grid {
        padding: 0 10px; /* Symmetric padding */
        gap: 30px;
    }
}
