/* About Page Styles */
body.about-page {
    background-color: var(--background-color);
    color: var(--text-color);
}

[data-theme="dark"] body.about-page {
    background: linear-gradient(rgba(var(--primary-color-rgb), 0.1), rgba(142, 226, 220, 0.1));
}

.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #179B95 50%, #179B95 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(173, 216, 230, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 218, 185, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: gentle-pulse 8s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-content {
        margin-top: 80px !important; 
    }
}

/* Floating blobs */
.hero-section .blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: blob-float 15s ease-in-out infinite;
}

.hero-section .blob:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-section .blob:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.hero-section .blob:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(2deg);
    }
    66% {
        transform: translateY(20px) rotate(-1deg);
    }
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes blob-float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-20px) scale(1.1);
    }
    50% {
        transform: translateY(-10px) scale(0.9);
    }
    75% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-content {
    max-width: 800px;
    margin: 70px auto;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.hero-title {
    color: #def5f3 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #def5f3 !important;
    background-clip: initial !important;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.hero-subtitle {
    color: #def5f3 !important;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.app4it-highlight {
    color: #0b2925;
    font-weight: 800;
}

.nav-link {
    color: #def5f3 !important;
}

.nav-container {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] body.about-page .nav-container {
    background-color: rgba(234, 251, 251, 0.2);
}

/* Our Story Section */
.story-section {
    padding: 6rem var(--padding);
    background: transparent;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Mission, Vision, Why Section */
.mission-vision-why-section {
    padding: 6rem var(--padding);
    background: transparent;
    padding-bottom: 2rem;
}

.mvw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mvw-card {
    background: transparent;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mvw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mvw-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(var(--primary-color-rgb), 0.15);
}

.mvw-card:hover .mvw-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mvw-card:hover::before {
    transform: scaleX(1);
}

.mvw-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mvw-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.mvw-text {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* Team Section Styles */
.team-section {
    padding: 8rem var(--padding);
    position: relative;
    z-index: 1;
}

.team-section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--text-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Business Card Layout */
.team-card {
    background: transparent;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 280px;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(var(--primary-color-rgb), 0.15);
}

/* Card Overview Section */
.card-overview {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.profile-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-image-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.team-card:hover .profile-image-wrapper img {
    transform: scale(1.1);
}

.team-card:hover .profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 1;
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--card-background);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.team-card:hover .online-indicator {
    opacity: 1;
    transform: scale(1);
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-name {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

.team-card:hover .profile-name {
    color: var(--primary-color);
}

.profile-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
}

.social-link {
    color: var(--primary-color);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
}

.social-link:hover {
    color: white;
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Card Details Section */
.card-details {
    padding-top: 0.5rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-description {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    flex: 1;
}

.team-card:hover .member-description {
    opacity: 0;
}

/* Card Fun Fact Section */
.card-fun-fact {
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05), 
        rgba(var(--secondary-color-rgb), 0.05));
    border-radius: 12px;
    padding: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card:hover .card-fun-fact {
    opacity: 1;
    transform: translateY(0);
}

.fun-fact-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

.fun-fact-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.fun-fact-text h4 {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.fun-fact-text p {
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Decorative circles */
.about-circle-1, .about-circle-2 {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.about-circle-1 {
    width: 350px;
    height: 350px;
    top: -150px;
    left: -150px;
    background: var(--primary-color);
    opacity: 0.1;
}

.about-circle-2 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    right: -100px;
    background: var(--secondary-color);
    opacity: 0.1;
}

/* Dark Mode Specific Styles */
[data-theme="dark"] .mvw-card,
[data-theme="dark"] .team-card {
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(64, 224, 208, 0.1);
}

[data-theme="dark"] .mvw-card:hover,
[data-theme="dark"] .team-card:hover {
    box-shadow: 0 12px 40px rgba(64, 224, 208, 0.2);
}

[data-theme="dark"] .story-text,
[data-theme="dark"] .mvw-text,
[data-theme="dark"] .member-description {
    color: var(--text-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .story-section,
    .mission-vision-why-section,
    .team-section {
        padding: 4rem var(--padding);
    }

    .mvw-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }

    .story-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .story-section,
    .mission-vision-why-section,
    .team-section {
        padding: 3rem var(--padding);
    }

    .mvw-card {
        padding: 2rem 1.5rem;
    }

    .team-card {
        padding: 1.5rem;
    }

    .profile-image-wrapper img {
        width: 70px;
        height: 70px;
    }

    .profile-section {
        gap: 1rem;
    }

    .profile-name {
        font-size: 1.1rem;
    }

    .profile-title {
        font-size: 0.85rem;
    }

    .mvw-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-card {
        padding: 1.25rem;
    }

    .profile-image-wrapper img {
        width: 60px;
        height: 60px;
    }

    .profile-section {
        gap: 0.75rem;
    }

    .profile-name {
        font-size: 1rem;
    }

    .profile-title {
        font-size: 0.8rem;
    }

    .member-description {
        font-size: 0.9rem;
    }
}

.team-intro {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.85;
    line-height: 1.5;
}

.story-section .cta-button {
    margin-top: 2rem;
}