/* ========================================
   ABOUT US PAGE - Stunning Design
   ======================================== */

/* Page offset (fixed header)
   Desktop previously looked correct; only apply extra spacing on smaller screens where header wraps. */
.about-page {
    padding-top: 0;
}

/* Hero Section */
.about-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: heroGlowMove 15s ease-in-out infinite;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    top: 30%;
    right: 10%;
    animation-delay: 5s;
}

.hero-glow-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-tertiary), transparent);
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes heroGlowMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
        opacity: 0.3;
    }
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    }
}

.badge-icon {
    font-size: 1.2rem;
    animation: iconSpin 3s linear infinite;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 3rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-primary);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content */
.about-main {
    position: relative;
    padding: 4rem 0;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Profile Section */
.profile-section {
    margin-bottom: 6rem;
}

.profile-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(0, 255, 136, 0.03));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.1), transparent 50%);
    pointer-events: none;
}

.profile-image-wrapper {
    position: relative;
}

.profile-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
    filter: blur(40px);
    animation: imageBgPulse 4s ease-in-out infinite;
}

@keyframes imageBgPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.profile-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent-primary);
    border-radius: 24px;
    opacity: 0.3;
    animation: ringPulse 3s ease-in-out infinite;
}

.profile-ring-2 {
    animation-delay: 1.5s;
    border-color: var(--accent-secondary);
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

.profile-content {
    position: relative;
    z-index: 1;
}

.profile-header {
    margin-bottom: 2rem;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.profile-badge:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.profile-badge svg {
    color: var(--accent-primary);
}

.bio-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-extended-content {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.title-icon {
    font-size: 2rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Expertise Section */
.expertise-section {
    margin-bottom: 6rem;
}

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

.expertise-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.expertise-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    transition: all 0.4s ease;
}

.expertise-card:hover .expertise-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
}

.expertise-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.expertise-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Values Section */
.values-section {
    margin-bottom: 6rem;
}

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

.value-card {
    background: linear-gradient(135deg, var(--card-bg), var(--secondary-bg));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.value-card:hover::before {
    opacity: 0.1;
}

.value-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.value-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.value-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    margin-bottom: 4rem;
}

.cta-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
    filter: blur(60px);
    animation: ctaGlowPulse 3s ease-in-out infinite;
}

@keyframes ctaGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-bg);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 60px rgba(0, 212, 255, 0.5);
}

.cta-btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
}

.cta-btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 60px rgba(0, 212, 255, 0.3);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-card {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .profile-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .profile-image-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .expertise-grid,
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-page {
        padding-top: 150px;
    }

    .about-hero {
        /* Header is fixed (tool-style.css). Increase top padding so hero text doesn't hide under it. */
        padding: 1.5rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .profile-card {
        padding: 2rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .bio-paragraph {
        font-size: 1rem;
    }
    
    .expertise-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 3rem 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-page {
        padding-top: 170px;
    }
    .profile-badges {
        flex-direction: column;
    }
    
    .profile-badge {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
        flex-direction: column;
    }
    
    .expertise-card,
    .value-card {
        padding: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
