/* Updated CSS for Fully Loaded House About Page */
body {
    font-family: Helvetica, Arial, sans-serif;
}

/* Header Section */
.about-header {
    background: linear-gradient(135deg, #bf1f2f 0%, #d92c3e 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s infinite alternate;
    z-index: 0;
}

.about-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: white;
    transform: skewY(-3deg);
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.1; }
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background: 
        linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="%23bf1f2f" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23bf1f2f" opacity="0.1"/></svg>');
    position: relative;
    z-index: 2;
}

.story-section .col-lg-6[data-aos="fade-right"] {
    transition: transform 0.3s ease-out;
}

.story-section:hover .col-lg-6[data-aos="fade-right"] {
    transform: translateY(-10px);
}

/* Mission & Vision Section */
.mission-vision {
    padding: 100px 0;
    background: 
        linear-gradient(rgba(248,249,250,0.95), rgba(248,249,250,0.95)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="10" y="10" width="2" height="2" fill="%23bf1f2f" opacity="0.1"/><rect x="90" y="90" width="2" height="2" fill="%23bf1f2f" opacity="0.1"/></svg>');
    position: relative;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, white 0%, rgba(255,255,255,0.8) 100%);
    transform: skewY(3deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5901d 0%, #f8a94a 100%);
    color: white;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, white 0%, rgba(255,255,255,0.8) 100%);
    transform: skewY(-3deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #f5901d 0%, #f8a94a 100%);
    transform: skewY(3deg);
}

/* Card Styles */
.mv-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
}

.mv-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mv-card .card-body {
    padding: 30px;
}

.mv-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #bf1f2f;
    transition: transform 0.3s ease;
}

.mv-card:hover .mv-icon {
    transform: scale(1.2);
}

/* Team Cards */
.team-card {
    border: none;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: float 6s ease-in-out infinite;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #bf1f2f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Stats */
.stat-item {
    border: 2px solid #bf1f2f;
    padding: 20px;
    border-radius: 90px;
    background-color: #bf1f2f;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateX(10px) scale(1.05);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    position: absolute;
    right: -15px;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number::after {
    opacity: 1;
    transform: translateY(-5px);
}

/* Step Numbers */
.step-number {
    width: 40px;
    height: 40px;
    background: #bf1f2f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    color: #333;
    font-size: 32px;
    font-weight: bold;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #bf1f2f;
}

.white-title .section-title {
    color: white;
}

.white-title .section-title::after {
    background: white;
}

/* Buttons */
.btn-primary {
    background-color: #bf1f2f;
    border-color: #bf1f2f;
}

.btn-primary:hover {
    background-color: #a11a27;
    border-color: #a11a27;
}

.btn-outline-primary {
    color: #bf1f2f;
    border-color: #bf1f2f;
}

.btn-outline-primary:hover {
    background-color: #bf1f2f;
    border-color: #bf1f2f;
    color: white;
}

/* How It Works */
.how-it-works {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-content {
    flex: 1;
}

.step-title {
    color: #bf1f2f;
    margin-bottom: 10px;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #bf1f2f;
}

.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* How It Works Image */
.how-it-works-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Desktop sizing */
@media (min-width: 992px) {
    .how-it-works-img {
        max-height: 432px;
        width: auto;
        position: relative;
        left: 50px;
    }
}

/* Tablet sizing */
@media (max-width: 991px) {
    .how-it-works-img {
        max-height: 380px;
        margin-bottom: 30px;
    }
}

/* Mobile sizing */
@media (max-width: 767px) {
    .how-it-works-img {
        max-height: 300px;
        left: 0;
    }
}

.how-it-works-img:hover {
    transform: scale(1.03);
}

/* Scrolling Cards Section */
.flipkart-scrolling-cards {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scrolling-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-horizontal 30s linear infinite;
}

/* Card */
.flipkart-card {
    width: 240px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    perspective: 1000px;
}

.flipkart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.flipkart-card:hover .card-icon {
    animation: bounce 0.5s ease;
}

/* Icon */
.card-icon {
    font-size: 40px;
    color: #bf1f2f;
    margin-bottom: 15px;
}

/* Content */
.card-content h3 {
    font-size: 16px;
    color: #212121;
    margin-bottom: 8px;
}

.card-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Scroll Animation */
@keyframes scroll-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Edge Fade */
.flipkart-scrolling-cards::before,
.flipkart-scrolling-cards::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.flipkart-scrolling-cards::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 0%, transparent 100%);
}

.flipkart-scrolling-cards::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 0%, transparent 100%);
}

/* Pause on Hover */
.flipkart-scrolling-cards:hover .scrolling-track {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .scrolling-track {
        gap: 15px;
        animation-duration: 20s;
    }

    .flipkart-card {
        width: 200px;
        padding: 15px;
    }

    .card-icon {
        font-size: 30px;
    }

    .card-content h3 {
        font-size: 14px;
    }

    .card-content p {
        font-size: 12px;
    }
    
    .mv-card, .team-card {
        transform: none !important;
        animation: none !important;
    }
    
    .mv-card:hover, .team-card:hover {
        transform: translateY(-5px) !important;
    }
}