/* About Page Styles - Dark/Light Theme Support */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&family=JetBrains+Mono:wght@400&display=swap');

/* CSS Variables for Dark Theme (Default) */
:root,
.dark-theme {
    --hero-bg-start: #0d1117;
    --hero-bg-end: #161b22;
    --hero-text: #ffffff;
    --hero-lead: rgba(255, 255, 255, 0.8);

    --team-bg: #0d1117;
    --team-gradient-1: rgba(16, 185, 129, 0.15);
    --team-gradient-2: rgba(99, 102, 241, 0.15);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-hover-bg: rgba(255, 255, 255, 0.05);

    --card-text: #ffffff;
    --card-text-secondary: rgba(255, 255, 255, 0.75);
    --role-section-bg: rgba(0, 0, 0, 0.3);
    --role-section-hover: rgba(0, 0, 0, 0.5);

    --mission-bg: #161b22;
    --mission-text: #ffffff;
    --mission-lead: rgba(255, 255, 255, 0.85);

    --contact-bg: #0d1117;
    --contact-text: #ffffff;
    --contact-note: rgba(255, 255, 255, 0.7);

    --footer-bg: #0a0e13;
    --footer-text: rgba(255, 255, 255, 0.6);

    --accent-emerald: #10B981;
    --accent-indigo: #6366f1;
}

/* Light Theme Variables */
.light-theme {
    --hero-bg-start: #f7fcf5;
    --hero-bg-end: #edf7e7;
    --hero-text: #1a3d1a;
    --hero-lead: #4a5d4a;

    --team-bg: #ffffff;
    --team-gradient-1: rgba(16, 185, 129, 0.05);
    --team-gradient-2: rgba(99, 102, 241, 0.05);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-highlight: rgba(0, 0, 0, 0.15);
    --glass-hover-bg: rgba(255, 255, 255, 0.85);

    --card-text: #1a1a1a;
    --card-text-secondary: #4a4a4a;
    --role-section-bg: rgba(16, 185, 129, 0.08);
    --role-section-hover: rgba(16, 185, 129, 0.12);

    --mission-bg: #f8f9fa;
    --mission-text: #1a3d1a;
    --mission-lead: #4a5d4a;

    --contact-bg: #ffffff;
    --contact-text: #1a3d1a;
    --contact-note: #666666;

    --footer-bg: #f5f5f5;
    --footer-text: #888888;

    --accent-emerald: #059669;
    --accent-indigo: #4f46e5;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--glass-bg);
    border-color: var(--glass-highlight);
    transform: rotate(20deg);
}

.theme-icon {
    display: block;
    line-height: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Hero Section */
.about-hero {
    padding: 120px 0 80px;
    background: radial-gradient(circle at 50% 50%, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--team-gradient-1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    transition: background 0.4s ease;
}

.about-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--hero-text);
    margin-bottom: 24px;
    position: relative;
    letter-spacing: -0.02em;
    transition: color 0.4s ease;
}

.about-hero .lead {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--hero-lead);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    font-weight: 500;
    transition: color 0.4s ease;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background-color: var(--team-bg);
    background-image:
        radial-gradient(circle at 10% 20%, var(--team-gradient-1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--team-gradient-2) 0%, transparent 40%);
    position: relative;
    transition: background 0.4s ease;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Glass Cards */
.team-card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    flex-direction: column;

    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);

    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27),
        box-shadow 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    border-color: var(--glass-highlight);
    background: var(--glass-hover-bg);
}

/* Inner Glows */
.team-card-tech::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, var(--team-gradient-1) 0%, transparent 50%);
    pointer-events: none;
    transition: background 0.4s ease;
}

.team-card-vision::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, var(--team-gradient-2) 0%, transparent 50%);
    pointer-events: none;
    transition: background 0.4s ease;
}

/* Card Content */
.card-content {
    padding: 48px;
    color: var(--card-text);
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    margin-bottom: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Member Photo */
.member-photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card:hover .member-photo {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--glass-highlight);
}

/* Header Text */
.header-text {
    flex: 1;
}

.role-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.team-card-vision .role-badge {
    color: var(--accent-indigo);
}

.card-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
    color: var(--card-text) !important;
    line-height: 1.1;
    transition: color 0.4s ease;
}

.card-header .title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--card-text-secondary);
    font-weight: 400;
    margin: 0;
    transition: color 0.4s ease;
}

/* Body Text */
.card-body p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--card-text-secondary);
    margin-bottom: 24px;
    transition: color 0.4s ease;
}

/* Inner Sections */
.role-section,
.philosophy {
    background: var(--role-section-bg);
    border-left: 3px solid var(--accent-emerald);
    border-radius: 0 12px 12px 0;
    padding: 20px;
    margin-top: auto;
    transition: background 0.3s ease;
}

.team-card-vision .role-section {
    border-left-color: var(--accent-indigo);
}

.team-card:hover .role-section,
.team-card:hover .philosophy {
    background: var(--role-section-hover);
}

.role-section strong,
.philosophy strong {
    color: var(--accent-emerald);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}

.team-card-vision .role-section strong {
    color: var(--accent-indigo);
}

.role-section p,
.philosophy p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--card-text-secondary);
    transition: color 0.4s ease;
}

/* Mission Section */
.mission-section {
    padding: 100px 0;
    background: var(--mission-bg);
    text-align: center;
    transition: background 0.4s ease;
}

.mission-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--mission-text);
    margin-bottom: 32px;
    transition: color 0.4s ease;
}

.mission-section p {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--mission-lead);
    max-width: 840px;
    margin: 0 auto;
    line-height: 1.8;
    transition: color 0.4s ease;
}

.mission-section strong {
    color: var(--accent-emerald);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--contact-bg);
    text-align: center;
    transition: background 0.4s ease;
}

.contact-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--contact-text);
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.contact-section>.container>p {
    font-size: 1.1rem;
    color: var(--contact-text);
    margin-bottom: 15px;
    transition: color 0.4s ease;
}

.security-note {
    color: var(--contact-note) !important;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: color 0.4s ease;
}

.contact-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-lg {
    padding: 16px 36px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    text-align: center;
    transition: all 0.4s ease;
}

.footer-content p {
    margin: 0 0 10px 0;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-emerald);
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-text {
        margin-top: 20px;
    }

    .role-section,
    .philosophy {
        border-left: none;
        border-top: 3px solid var(--accent-emerald);
        border-radius: 0 0 12px 12px;
    }
}