/* ========================================
   ABOUT US - Specific styling
   Uses base variables from theme.css
   ======================================== */

/* Base wrapper */
.tty-about-wrapper {
    position: relative;
    overflow: hidden;
    font-family: inherit;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Decorative pattern background */
.tty-about-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 9%;
    width: 40%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5v10m0 30v10m-20-25h10m30 0h10' stroke='%23005F5F' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='5' fill='%23005F5F'/%3E%3Ccircle cx='30' cy='15' r='2' fill='%23005F5F'/%3E%3Ccircle cx='30' cy='45' r='2' fill='%23005F5F'/%3E%3Ccircle cx='20' cy='30' r='2' fill='%23005F5F'/%3E%3Ccircle cx='40' cy='30' r='2' fill='%23005F5F'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Direct children above pattern */
.tty-about-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Banner section */
.tty-about-banner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    overflow: hidden;
    margin-bottom: 40px;
    margin-top: 40px;
}

.tty-about-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tty-about-intro {
    font-size: 24px;
    color: var(--tty-primary);
    margin: 0 0 20px;
    font-weight: 600;
}

/* Container layout */
.tty-about-container {
    display: flex;
    gap: 40px;
}

/* Sidebar navigation */
.tty-about-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 150px;
    height: fit-content;
}

.tty-about-nav-block,
.tty-about-links-block {
    background-color: var(--tty-bg-secondary);
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 20px;
}

.tty-about-nav-block h3,
.tty-about-links-block h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.tty-about-nav-list,
.tty-about-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tty-about-nav-list li,
.tty-about-quick-links li {
    margin-bottom: 10px;
}

.tty-about-nav-list a,
.tty-about-quick-links a {
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    transition: var(--tty-transition-normal);
}

.tty-about-nav-list a:hover,
.tty-about-quick-links a:hover,
.tty-about-nav-list a.active {
    background: var(--tty-bg-linear-graniet);
    color: var(--tty-text-light);
}

.tty-about-quick-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tty-about-quick-links a i {
    font-size: 12px;
    opacity: 0.7;
    transition: var(--tty-transition-normal);
}

.tty-about-quick-links a:hover i {
    opacity: 1;
    transform: translateX(3px);
}

/* Main content area */
.tty-about-content-main {
    flex: 1;
}

.tty-about-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
}

.tty-about-section:last-of-type {
    border-bottom: none;
    margin-bottom: 150px;
}

.tty-about-section h2 {
    color: var(--tty-primary);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 34px;
    line-height: 1.2;
}

.tty-about-block {
    background-color: var(--tty-bg-secondary);
    padding: 30px;
    border-radius: 30px;
}

.tty-about-block h3 {
    color: var(--tty-primary);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.tty-about-block h4 {
    color: var(--tty-primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* Mission Section */
.tty-mission-content {
    border-left: 5px solid var(--tty-primary);
    padding-left: 25px;
}

.tty-mission-statement {
    font-size: 24px;
    font-weight: 600;
    color: var(--tty-primary);
    margin-bottom: 20px;
}

.tty-mission-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.tty-mission-pillar {
    background-color: var(--tty-text-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tty-mission-pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tty-pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 95, 95, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--tty-primary);
    font-size: 24px;
}

.tty-mission-pillar h3 {
    color: var(--tty-primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.tty-mission-pillar p {
    margin: 0;
    line-height: 1.6;
}

.tty-mission-conclusion {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 30px;
    padding: 15px 20px;
    background-color: rgba(0, 95, 95, 0.05);
    border-radius: 8px;
}

/* Vision Section */
.tty-vision-content {
    position: relative;
    z-index: 2;
}

/* Enhanced Team Grid */
.tty-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.tty-team-category {
    background: linear-gradient(135deg, var(--tty-text-light) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tty-team-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tty-primary), #00a896, var(--tty-primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tty-team-category:hover::before {
    transform: scaleX(1);
}

.tty-team-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,95,0.1);
}

.tty-category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.1) 0%, rgba(0, 168, 150, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--tty-primary);
    font-size: 24px;
    position: relative;
}

.tty-team-stats {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.tty-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 95, 95, 0.05);
    border-radius: 20px;
    font-size: 12px;
    color: var(--tty-primary);
    font-weight: 600;
}

.tty-stat-item i {
    font-size: 14px;
}

.tty-team-category h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 12px;
}

.tty-team-category p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.tty-team-link {
    color: var(--tty-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.tty-team-link:hover {
    color: #004545;
}

.tty-team-link i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.tty-team-link:hover i {
    transform: translateX(5px);
}

/* Enhanced CEO Message */
.tty-highlight-text {
    font-size: 22px;
    color: var(--tty-primary);
    font-weight: 600;
    text-align: center;
    margin: 30px 0;
    padding: 15px;
    background-color: rgba(0, 95, 95, 0.05);
    border-radius: 8px;
}

.tty-ceo-message {
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.05) 0%, rgba(0, 168, 150, 0.05) 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0 10px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tty-ceo-photo {
    flex-shrink: 0;
}

.tty-ceo-photo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--tty-primary);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tty-ceo-text p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.tty-ceo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.tty-ceo-signature {
    font-weight: 600;
    font-style: normal !important;
    color: var(--tty-primary);
    margin: 0 !important;
    font-size: 14px;
}

.tty-ceo-social {
    display: flex;
    gap: 12px;
}

.tty-linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #0077b5 0%, #0a66c2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,119,181,0.2);
}

.tty-linkedin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,119,181,0.3);
    color: white !important;
}

.tty-linkedin-link i {
    font-size: 14px;
}

/* Enhanced Explore Grid */
.tty-explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.tty-explore-card {
    background: linear-gradient(135deg, var(--tty-text-light) 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--tty-text-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 95, 95, 0.1);
}

.tty-explore-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 95, 95, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tty-explore-card:hover .tty-explore-glow {
    opacity: 1;
}

.tty-explore-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tty-primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.tty-explore-card:hover::after {
    transform: translateX(100%);
}

.tty-explore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,95,0.15);
    border-color: var(--tty-primary);
}

.tty-explore-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.1) 0%, rgba(0, 168, 150, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--tty-primary);
    font-size: 24px;
    transition: all 0.3s ease;
}

.tty-explore-card:hover .tty-explore-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.15) 0%, rgba(0, 168, 150, 0.15) 100%);
}

.tty-explore-card h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--tty-primary);
}

.tty-explore-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.tty-explore-meta {
    margin-bottom: 15px;
}

.tty-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.08) 0%, rgba(0, 168, 150, 0.08) 100%);
    border-radius: 15px;
    font-size: 11px;
    color: var(--tty-primary);
    font-weight: 600;
}

.tty-meta-badge i {
    font-size: 12px;
}

.tty-explore-link {
    color: var(--tty-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.tty-explore-card:hover .tty-explore-link {
    color: #004545;
}

.tty-explore-link i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.tty-explore-card:hover .tty-explore-link i {
    transform: translateX(5px);
}

/* Enhanced Name Story Section */
.tty-name-story-content {
    text-align: center;
    padding: 20px;
}

[data-theme="dark"] .tty-name-story-content {
    background-color: #005f5f10;
}

.tty-name-logo-container {
    margin-bottom: 30px;
}

.tty-name-logo {
    font-size: 56px;
    font-weight: 700;
    color: var(--tty-text-primary);
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    animation: logoReveal 2s ease-out;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tty-name-highlight {
    color: var(--tty-primary);
    position: relative;
}

.tty-name-trans {
    animation: slideInLeft 1s ease-out;
}

.tty-name-to {
    animation: fadeIn 1.5s ease-out;
}

.tty-name-you {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tty-logo-heartbeat {
    margin-top: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.tty-name-intro {
    font-size: 22px;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--tty-primary);
}

.tty-hero-title {
    margin: 0px 0px 10px 0px;
}

.tty-name-description {
    max-width: 800px;
    margin: 0 auto 40px;
}

.tty-name-description p {
    margin-bottom: 16px;
}

.tty-name-values-container {
    padding: 20px 0;
}

.tty-name-values {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1000px;
}

.tty-value-item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    background: linear-gradient(135deg, var(--tty-text-light) 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex: 1;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 95, 95, 0.1);
}

.tty-value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tty-value-item:hover::before {
    opacity: 1;
}

.tty-value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--tty-primary);
}

.tty-value-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.1) 0%, rgba(0, 168, 150, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tty-primary);
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
}

.tty-icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--tty-primary);
    opacity: 0.3;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

.tty-value-content {
    flex: 1;
}

.tty-value-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--tty-primary);
}

.tty-value-content p {
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.tty-value-progress {
    height: 4px;
    background: rgba(0, 95, 95, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}

.tty-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tty-primary) 0%, #00a896 100%);
    border-radius: 2px;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    from {
        width: 0;
    }
}

.tty-name-tagline-container {
    margin-top: 40px;
}

.tty-name-tagline {
    font-size: 24px;
    font-weight: 600;
    color: var(--tty-primary);
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: linear-gradient(135deg, var(--tty-text-light) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 2px solid rgba(0, 95, 95, 0.1);
    position: relative;
    overflow: hidden;
}

.tty-name-tagline::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--tty-primary), #00a896, var(--tty-primary));
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.tty-name-tagline:hover::before {
    opacity: 0.1;
}

.tty-tagline-icon {
    color: var(--tty-primary);
    animation: heartPulse 1.5s infinite;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Specific overrides */
#section-mission {
    margin-top: 20px;
}

.content-area-wrapper {
    margin-bottom: -60px;
}

.tty-about-header .heartbeat polyline {
    stroke: #e5924c;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .tty-about-wrapper * {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .tty-about-wrapper::before {
    opacity: 0.03;
}

[data-theme="dark"] .tty-mission-pillar,
[data-theme="dark"] .tty-team-category,
[data-theme="dark"] .tty-explore-card,
[data-theme="dark"] .tty-value-item,
[data-theme="dark"] .tty-name-tagline {
    background-color: var(--tty-bg-tertiary);
    background: var(--tty-bg-tertiary);
}

[data-theme="dark"] .tty-ceo-message {
    background: linear-gradient(135deg, rgba(0, 95, 95, 0.15) 0%, rgba(0, 168, 150, 0.15) 100%);
}

[data-theme="dark"] .tty-explore-card {
    border-color: rgba(0, 95, 95, 0.2);
}

[data-theme="dark"] .tty-value-item {
    border-color: rgba(0, 95, 95, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .tty-about-container {
        flex-direction: column;
    }
    
    .tty-about-sidebar {
        position: relative;
        top: 0;
        flex: 1 1 auto;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .tty-mission-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tty-team-grid,
    .tty-explore-grid {
        grid-template-columns: 1fr;
    }
    
    .tty-ceo-message {
        flex-direction: column;
        text-align: center;
    }
    
    .tty-ceo-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .tty-ceo-signature {
        text-align: center;
    }
}

@media (max-width: 900px) {
    .tty-name-values {
        flex-direction: column;
        max-width: 500px;
    }
    
    .tty-name-story-content {
        padding: 30px 20px;
    }
    
    .tty-name-logo {
        font-size: 44px;
    }
    
    .tty-name-intro {
        font-size: 20px;
    }
    
    .tty-name-tagline {
        font-size: 20px;
        padding: 12px 25px;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .tty-about-wrapper::before {
        display: none;
    }
    
    .tty-about-banner {
        margin-top: 20px;
    }
    
    .tty-mission-pillars {
        grid-template-columns: 1fr;
    }
    
    .tty-mission-statement {
        font-size: 22px;
    }
    
    .tty-mission-conclusion {
        font-size: 16px;
    }
    
    .tty-team-stats {
        justify-content: center;
    }
    
    .tty-linkedin-link span {
        display: none;
    }
    
    .tty-linkedin-link {
        padding: 8px;
        border-radius: 50%;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 600px) {
    .tty-name-logo {
        font-size: 36px;
    }
    
    .tty-name-tagline {
        width: 100%;
        padding: 15px;
    }
    
    .tty-explore-meta {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .tty-about-block {
        padding: 20px 15px;
    }
    
    .tty-about-section h2 {
        font-size: 26px;
    }
    
    .tty-team-category,
    .tty-explore-card {
        padding: 20px;
    }
    
    .tty-value-item {
        padding: 20px;
    }
}

/* Print styles */
@media print {
    .tty-about-sidebar,
    .tty-linkedin-link,
    .tty-team-link,
    .tty-explore-link {
        display: none;
    }
    
    .tty-about-container {
        flex-direction: column;
    }
    
    .tty-about-wrapper::before,
    .tty-explore-glow,
    .tty-icon-pulse {
        display: none;
    }
    
    * {
        animation: none !important;
    }
}