﻿/* About Page - DebugDuo */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Sora:wght@400;600;700;800&display=swap');

:root {
    --blue-bright: #3FA9F5;
    --blue-primary: #2E8BC0;
    --dark-primary: #1E293B;
    --dark-secondary: #0F172A;
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-cyan: #06B6D4;
    --accent-green: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', -apple-system, sans-serif;
    background: var(--dark-secondary);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Elements */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(63, 169, 245, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 169, 245, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--blue-bright), transparent);
    top: 10%;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    bottom: 20%;
    right: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HERO SECTION */
.about-hero {
    padding: 10rem 0 6rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(63, 169, 245, 0.08);
    border: 1px solid rgba(63, 169, 245, 0.2);
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    color: var(--blue-bright);
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-light), var(--blue-bright), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* TEAM SECTION */
.team-section {
    padding: 4rem 0 8rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* FLIP CARD */
.team-card {
    perspective: 1000px;
    height: 600px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 32px;
    overflow: hidden;
}

.card-front {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(63, 169, 245, 0.15);
    display: flex;
    flex-direction: column;
}

.card-back {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(63, 169, 245, 0.2);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 3rem; */
}

/* FRONT OF CARD */
.member-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

    .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(15, 23, 42, 1), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
}

    .image-overlay i {
        font-size: 2.5rem;
        color: var(--blue-bright);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

.team-card:hover .image-overlay i {
    opacity: 1;
}

.member-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.member-role {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--blue-bright);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

    .member-role i {
        font-size: 1.3rem;
    }

.member-skills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-tag {
    padding: 0.5rem 1.25rem;
    background: rgba(63, 169, 245, 0.08);
    border: 1px solid rgba(63, 169, 245, 0.15);
    color: var(--blue-bright);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* BACK OF CARD */
.member-bio {
    text-align: center;
}

.bio-icon {
    font-size: 3rem;
    color: var(--blue-bright);
    margin-bottom: 2rem;
}

.member-bio p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.bio-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(63, 169, 245, 0.1);
}

    .bio-footer p {
        color: var(--blue-bright);
        font-weight: 700;
        font-size: 1.1rem;
    }

/* STORY SECTION */
.story-section {
    padding: 6rem 0;
    background: rgba(30, 41, 59, 0.3);
}

.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.story-paragraph {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(63, 169, 245, 0.15);
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

    .stat-item:hover {
        transform: scale(1.05);
        border-color: rgba(63, 169, 245, 0.3);
    }

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--blue-bright);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* TECH EXPERTISE */
.tech-expertise {
    padding: 8rem 0;
}

    .tech-expertise .section-title {
        text-align: center;
        margin-bottom: 1rem;
    }

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 5rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.expertise-category {
    padding: 3rem 2.5rem;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(63, 169, 245, 0.1);
    border-radius: 24px;
    transition: all 0.3s ease;
}

    .expertise-category:hover {
        transform: translateY(-5px);
        border-color: rgba(63, 169, 245, 0.3);
        box-shadow: 0 10px 40px rgba(63, 169, 245, 0.1);
    }

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(63, 169, 245, 0.1), rgba(46, 139, 192, 0.1));
    border: 1px solid rgba(63, 169, 245, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

    .category-icon i {
        font-size: 2.5rem;
        color: var(--blue-bright);
    }

.expertise-category h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.expertise-category ul {
    list-style: none;
}

.expertise-category li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(63, 169, 245, 0.05);
}

    .expertise-category li:last-child {
        border-bottom: none;
    }

/* VALUES SECTION */
.values-section {
    padding: 6rem 0;
    background: rgba(30, 41, 59, 0.3);
}

    .values-section .section-title {
        text-align: center;
        margin-bottom: 5rem;
    }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.value-card {
    padding: 3rem 2.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(63, 169, 245, 0.1);
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

    .value-card:hover {
        transform: translateY(-5px);
        border-color: rgba(63, 169, 245, 0.3);
    }

.value-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 40px rgba(63, 169, 245, 0.3);
}

    .value-icon i {
        font-size: 2.5rem;
        color: white;
    }

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.value-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA SECTION */
.about-cta {
    padding: 8rem 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta-desc {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-primary));
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(63, 169, 245, 0.3);
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 48px rgba(63, 169, 245, 0.4);
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: rgba(63, 169, 245, 0.08);
    border: 2px solid rgba(63, 169, 245, 0.2);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        background: rgba(63, 169, 245, 0.12);
        border-color: rgba(63, 169, 245, 0.4);
        transform: translateY(-3px);
    }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 6rem 0 4rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .team-card {
        height: auto;
        min-height: 550px;
    }
}

/* About Page - Mobile Enhancements */
/* Add this to skin-about.css or include as separate file */

/* Improved Mobile Responsiveness */

/* Hero Section Mobile */
@media (max-width: 768px) {
    .about-hero {
        padding: 8rem 0 4rem; /* Reduced top padding */
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1.25rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .hero-desc {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Team Cards Mobile - CRITICAL FIX */
@media (max-width: 768px) {
    .team-section {
        padding: 3rem 0 6rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem; /* Add horizontal padding */
    }

    /* Disable hover flip on mobile - tap to flip instead */
    .team-card {
        height: auto;
        min-height: 500px; /* Reduced from 550px */
    }

        /* Make cards clickable on mobile */
        .team-card.active .card-inner {
            transform: rotateY(180deg);
        }

    /* Reduce card padding on mobile */
    .member-info {
        padding: 1.5rem;
    }

    .member-image {
        height: 300px; /* Reduced from 400px */
    }

    .member-name {
        font-size: 1.75rem;
    }

    .member-role {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .skill-tag {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    /* Back of card mobile */
    .card-back {
        padding: 2rem;
    }

    .bio-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .member-bio p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Story Section Mobile */
@media (max-width: 768px) {
    .story-section {
        padding: 4rem 0;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .story-paragraph {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .story-stats {
        gap: 1.5rem;
    }

    .stat-item {
        padding: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

/* Tech Expertise Mobile */
@media (max-width: 768px) {
    .tech-expertise {
        padding: 4rem 0;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .expertise-category {
        padding: 2rem 1.75rem;
    }

    .category-icon {
        width: 70px;
        height: 70px;
    }

        .category-icon i {
            font-size: 2rem;
        }

    .expertise-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .expertise-category li {
        font-size: 1rem;
        padding: 0.65rem 0;
    }
}

/* Values Section Mobile */
@media (max-width: 768px) {
    .values-section {
        padding: 4rem 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .value-card {
        padding: 2.5rem 2rem;
    }

    .value-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

        .value-icon i {
            font-size: 2rem;
        }

    .value-card h3 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .value-card p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* CTA Section Mobile */
@media (max-width: 768px) {
    .about-cta {
        padding: 4rem 0;
    }

    .cta-content {
        padding: 0 1rem;
    }

    .cta-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .cta-desc {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        justify-content: center;
    }
}

/* Small Mobile Devices (< 400px) */
@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .team-card {
        min-height: 480px;
    }

    .member-image {
        height: 250px;
    }

    .member-name {
        font-size: 1.5rem;
    }

    .member-skills {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 0.35rem 0.85rem;
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .expertise-category,
    .value-card {
        padding: 2rem 1.5rem;
    }
}

/* Tablet Landscape (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .team-card:hover .card-inner {
        transform: none;
    }

    /* Add tap instruction for flip cards */
    .team-card::before {
        content: 'Tap to flip';
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(63, 169, 245, 0.9);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 600;
        z-index: 10;
        pointer-events: none;
    }

    /* Larger tap targets */
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
    }

    .skill-tag {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
    }
}

/* Prevent text selection on flip cards */
.team-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improve readability on small screens */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Ensure minimum readable size */
    }

    /* Prevent horizontal overflow */
    .container {
        overflow-x: hidden;
    }

    /* Ensure images don't break layout */
    .member-image img {
        max-width: 100%;
        height: 100%;
        object-fit: cover;
    }
}