/* About Page Specific Styles */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom selection colors */
::selection {
    background: var(--primary-100);
    color: var(--primary-800);
}

/* Scroll reveal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-hero,
.about-story,
.about-expertise,
.about-certifications,
.about-philosophy,
.about-cta {
    animation: fadeInUp 0.8s ease forwards;
}

/* Stagger animations for cards */
.expertise-card:nth-child(1) { animation-delay: 0.1s; }
.expertise-card:nth-child(2) { animation-delay: 0.2s; }
.expertise-card:nth-child(3) { animation-delay: 0.3s; }
.expertise-card:nth-child(4) { animation-delay: 0.4s; }

.cert-item:nth-child(1) { animation-delay: 0.1s; }
.cert-item:nth-child(2) { animation-delay: 0.2s; }
.cert-item:nth-child(3) { animation-delay: 0.3s; }
.cert-item:nth-child(4) { animation-delay: 0.4s; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .about-hero,
    .about-story,
    .about-expertise,
    .about-certifications,
    .about-philosophy,
    .about-cta {
        animation: none;
    }
    
    .expertise-card,
    .cert-item,
    .profile-card,
    .social-link {
        animation: none;
        transition: none;
    }
}

.about-main {
    min-height: 100vh;
    background: var(--white);
}

.about-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* CTA is now outside container, naturally full width */

.about-hero {
    padding: calc(80px + var(--spacing-7xl)) 0 var(--spacing-7xl);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
    margin-top: 0;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-6xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-3xl);
    letter-spacing: -0.03em;
}

.about-subtitle {
    font-size: 1.375rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: var(--spacing-5xl);
}

.about-stats {
    display: flex;
    gap: var(--spacing-5xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-family-mono);
    color: var(--primary-600);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--spacing-sm);
}

.profile-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--gray-100);
    min-width: 320px;
    max-width: 400px;
    width: 100%;
    justify-self: center;
}

/* Removed hover effects and ::before gradient bar */

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-3xl);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-placeholder i {
    width: 48px;
    height: 48px;
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.profile-info p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-3xl);
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover,
.social-link:focus {
    background: var(--primary-500);
    color: white;
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.about-story {
    padding: var(--spacing-7xl) 0;
    background: var(--white);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.story-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-5xl);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for browsers that don't support background-clip: text */
    color: var(--primary-600);
}

.story-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--spacing-4xl);
    text-align: justify;
    hyphens: auto;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.about-expertise {
    padding: var(--spacing-7xl) 0;
    background: var(--gray-50);
}

.about-expertise h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-5xl);
    color: var(--gray-900);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3xl);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.expertise-card {
    background: var(--white);
    padding: var(--spacing-3xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

/* Removed hover effects for cleaner look */

.expertise-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-100);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-600);
    flex-shrink: 0;
}

.expertise-icon i {
    width: 32px;
    height: 32px;
}

.expertise-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-lg);
}

.expertise-card > p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--spacing-3xl);
}

.expertise-skills {
    list-style: none;
    text-align: left;
}

.expertise-skills li {
    padding: var(--spacing-sm) 0;
    color: var(--gray-700);
    position: relative;
    padding-left: var(--spacing-3xl);
}

.expertise-skills li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.2;
}

.expertise-skills li::after {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--primary-600);
    font-weight: bold;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-certifications {
    padding: var(--spacing-7xl) 0;
}

.about-certifications h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-5xl);
    color: var(--gray-900);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-3xl);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.cert-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-3xl);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-fast);
}

.cert-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cert-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-logo.google {
    background: #4285f4;
    color: white;
}

.cert-logo.semrush {
    background: #ff642d;
    color: white;
}

.cert-logo.technical {
    background: var(--secondary-500);
    color: white;
}

.cert-info h4 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.cert-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.about-philosophy {
    padding: var(--spacing-7xl) 0;
    background: var(--gray-50);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    text-align: center;
}

.philosophy-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-5xl);
    color: var(--gray-900);
}

.philosophy-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0 0 var(--spacing-6xl) 0;
    padding: var(--spacing-4xl);
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    position: relative;
}

.philosophy-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-300);
    position: absolute;
    top: -10px;
    left: var(--spacing-lg);
    font-family: serif;
}

.philosophy-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-4xl);
    text-align: left;
}

.principle-item {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.principle-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    flex-shrink: 0;
}

.principle-content h4 {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.principle-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

.about-cta {
    padding: var(--spacing-7xl) 0;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-5xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: white;
    color: var(--primary-600);
}

.cta-actions .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-4px);
}

.cta-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-actions .btn-secondary:hover {
    background: white;
    color: var(--primary-600);
}

.nav-link.active {
    background: var(--primary-100);
    color: var(--primary-700);
}

.mobile-nav-link.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* About page responsive */
@media (max-width: 1024px) {
    .about-hero {
        padding: calc(80px + var(--spacing-5xl)) 0 var(--spacing-5xl);
    }
    
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-4xl);
        text-align: center;
    }
    
    .about-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .profile-card {
        max-width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: calc(80px + var(--spacing-4xl)) 0 var(--spacing-4xl);
    }
    
    .about-hero-content {
        gap: var(--spacing-3xl);
    }
    
    .about-stats {
        justify-content: center;
        gap: var(--spacing-3xl);
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-story,
    .about-expertise,
    .about-certifications,
    .about-philosophy,
    .about-cta {
        padding: var(--spacing-5xl) 0;
    }
    
    .story-content h2,
    .about-expertise h2,
    .about-certifications h2,
    .philosophy-content h2,
    .cta-content h2 {
        font-size: 2rem;
        margin-bottom: var(--spacing-3xl);
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .expertise-card {
        min-height: auto;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .philosophy-principles {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .philosophy-quote {
        font-size: 1.25rem;
        padding: var(--spacing-3xl);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: var(--spacing-lg) var(--spacing-2xl);
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
        gap: var(--spacing-2xl);
        align-items: center;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .expertise-card,
    .cert-item {
        padding: var(--spacing-3xl);
    }
    
    .profile-card {
        padding: var(--spacing-3xl);
    }
    
    .philosophy-quote::before {
        display: none;
    }
}