﻿/* Our Story Section */

.our-story {
    padding: 90px 20px;
    background: var(--color-black);
}

.story-container {
    max-width: 1100px;
    margin: 0 auto;
}

.story-content {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    text-align: justify;
}


/* Team Section */

.team-section {
    padding: 90px 20px;
    background: var(--color-dark-black);
    border-top: 1px solid var(--color-dark-grey);
}

.team-container {
    max-width: 1280px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.3);
    border-color: var(--color-purple-primary);
}

.team-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-photo img {
    opacity: 1;
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(124, 58, 237, 0.95), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-overlay .social-links {
    display: flex;
    gap: 16px;
}

.team-overlay .social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-overlay .social-links a:hover {
    background: var(--color-white);
    color: var(--color-purple-primary);
    transform: translateY(-4px);
}

.team-info {
    padding: 28px;
    text-align: center;
}

.team-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.team-role {
    font-size: 1rem;
    color: var(--color-purple-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.team-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-light-grey);
    max-height: 100%;
    overflow: visible;
}


/* Values Section */

.values-section {
    padding: 90px 20px;
    background: var(--color-black);
    border-top: 1px solid var(--color-dark-grey);
}

.values-container {
    max-width: 1280px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--color-purple-primary);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.2);
}

.value-icon {
    font-size: 3rem;
    color: var(--color-purple-primary);
    margin-bottom: 24px;
}

.value-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}

.value-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-light-grey);
}


/* Responsive - Tablet */

@media (max-width: 1024px) {
    .about-hero {
        padding: 140px 20px 80px;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}


/* Responsive - Mobile */

@media (max-width: 768px) {
    .about-hero {
        padding: 120px 20px 60px;
    }
    .about-hero-title {
        font-size: 2rem;
    }
    .about-hero-subtitle {
        font-size: 1.25rem;
    }
    .about-hero-description {
        font-size: 1rem;
    }
    .our-story,
    .team-section,
    .values-section {
        padding: 60px 20px;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .story-content p {
        font-size: 1rem;
        text-align: left;
    }
}


/* ==========================================
   Comprehensive Accessibility & Dark/Light Mode Support
========================================== */


/* High Contrast Mode Support */

@media (prefers-contrast: more) {
    body {
        --color-light-grey: #505050;
        --color-text-secondary: #333333;
    }
    body.light-mode {
        --color-light-grey: #000000;
        --color-text-secondary: #000000;
    }
    .btn-primary,
    .btn-secondary,
    .service-card,
    .team-card,
    .work-item,
    .review-card {
        border: 2px solid currentColor;
    }
}


/* Reduced Motion Support */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}


/* Ensures proper color contrast for readability */

@supports (color: var(--color-text-primary)) {
    body {
        color: var(--color-text-primary);
        background-color: var(--color-bg-primary);
    }
}


/* Dark Mode Specific - Ensures images are properly visible */

body:not(.light-mode) img {
    opacity: 0.95;
}


/* Light Mode Specific - Image enhancements */

body.light-mode img {
    opacity: 1;
}


/* Ensure all text remains readable in both modes */

body strong,
body b {
    font-weight: 600;
}

body em,
body i:not([class*="fa"]) {
    font-style: italic;
}


/* Code and Pre blocks visibility */

body code,
body pre {
    background: var(--color-medium-grey);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Monaco', 'Courier New', monospace;
}

body pre {
    padding: 12px;
    overflow-x: auto;
}


/* Blockquote styling for both modes */

body blockquote {
    border-left: 4px solid var(--color-purple-primary);
    padding-left: 16px;
    color: var(--color-text-secondary);
    font-style: italic;
}


/* Ensure proper contrast for small text */

body small,
body .small-text {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}


/* Mark/highlight text support */

body mark,
body .highlight {
    background: rgba(124, 58, 237, 0.2);
    color: inherit;
    padding: 2px 4px;
    border-radius: 2px;
}


/* Strikethrough and underline */

body s,
body del {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

body u,
body ins {
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* Ensure proper visibility for all interactive elements */

@media (hover: hover) {
    body button:hover,
    body a:hover,
    body input:hover {
        transform: translateY(-1px);
    }
}


/* Touch device optimizations */

@media (hover: none) and (pointer: coarse) {
    body button,
    body a,
    body input {
        min-height: 44px;
        min-width: 44px;
    }
    body *:active {
        opacity: 0.8;
    }
}


/* Print styles maintain theme awareness */

@media print {
    body {
        background: var(--color-white) !important;
        color: var(--color-black) !important;
    }
    body.light-mode {
        background: #ffffff !important;
        color: #000000 !important;
    }
    header,
    footer,
    .nav-toggle-label,
    .slider-controls,
    .form-card,
    .contact-right,
    .whatsapp-button {
        display: none !important;
    }
    a {
        text-decoration: underline;
    }
    section {
        page-break-inside: avoid;
        background: transparent !important;
    }
}


/* Ensure smooth transitions across all elements */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}


/* Ensure proper z-index stacking context */

.header {
    z-index: 1000;
}

.whatsapp-button {
    z-index: 999;
}

.modal,
.modal-overlay {
    z-index: 2000;
}


/* Ensures images don't overflow containers */

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Ensures videos are responsive */

iframe,
video {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Final consistency check - ensure all text is readable */

body {
    letter-spacing: 0.3px;
    word-spacing: 0.1em;
    overflow-x: hidden;
}

[data-animate] {
    opacity: 1 !important;
}