/* ========================================
   ABOUT.SAIFULLAH.AI - About Page Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    --color-bg-primary: #0b0f14;
    --color-bg-secondary: #121822;
    --color-bg-tertiary: #18202c;
    --color-bg-elevated: #1e2733;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    --color-text-muted: rgba(255, 255, 255, 0.4);

    --color-accent-primary: #60a5fa;
    --color-accent-secondary: #f6c453;
    --color-accent-tertiary: #2dd4bf;

    --gradient-primary: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent-tertiary) 100%);

    --font-primary: 'Manrope', 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', var(--font-primary);

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-accent-primary);
    color: var(--color-bg-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: var(--space-md);
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

.gradient-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
    top: 40%;
    right: -15%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(246, 196, 83, 0.08) 0%, transparent 70%);
    top: 60%;
    left: 60%;
    animation-delay: -15s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

.grid-pattern {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 1;
}

/* Floating Logo */
.floating-logo {
    position: fixed;
    top: var(--space-lg);
    left: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    z-index: 100;
    padding: var(--space-sm) var(--space-md);
    background: rgba(11, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.floating-logo:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.15);
}

.logo-icon img {
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
}

.logo-dot {
    color: var(--color-accent-primary);
}

/* Floating Language */
.floating-language {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 100;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 180px 0 80px;
    text-align: center;
    z-index: 10;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 10;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatSlow 20s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* The Equation */
.about-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 8vw, 6rem);
    margin-bottom: var(--space-4xl);
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    z-index: 2;
}

.equation-left,
.equation-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.equation-number {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(96,165,250,0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 40px rgba(96, 165, 250, 0.3));
    animation: numberGlow 4s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(96, 165, 250, 0.3)); }
    50% { filter: drop-shadow(0 0 60px rgba(96, 165, 250, 0.5)); }
}

.equation-right .equation-number {
    background: linear-gradient(180deg, rgba(167,139,250,1) 0%, rgba(167,139,250,0.8) 50%, rgba(244,114,182,0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: infinityGlow 4s ease-in-out infinite;
}

@keyframes infinityGlow {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(167, 139, 250, 0.3)); }
    50% { filter: drop-shadow(0 0 60px rgba(167, 139, 250, 0.5)); }
}

.equation-label {
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.equation-symbol {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    color: var(--color-text-muted);
    opacity: 0.5;
    animation: pulseSymbol 3s ease-in-out infinite;
}

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

/* Bento Grid */
.about-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

.bento-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(96, 165, 250, 0.1);
}

.bento-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-primary);
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

/* Profile Card */
.bento-profile {
    grid-column: span 5;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-color: rgba(96, 165, 250, 0.15);
}

.bento-profile-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.bento-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

.bento-avatar img {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transform: scaleX(-1);
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    z-index: 1;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #60a5fa, #a78bfa, #f472b6, #60a5fa);
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--color-bg-primary);
    border-radius: 50%;
}

.avatar-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 11;
    width: 16px;
    height: 16px;
    background: var(--color-accent-tertiary);
    border: 3px solid var(--color-bg-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.bento-profile-info h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.profile-role {
    font-size: var(--text-base);
    color: var(--color-accent-primary);
    margin-bottom: var(--space-sm);
}

.profile-loc {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.bento-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-bg-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.bento-cta:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.3);
}

/* Story Card */
.bento-story {
    grid-column: span 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-story-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.bento-story-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Stats Cards */
.bento-stat {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 140px;
}

.bento-stat .stat-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.bento-stat .stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.bento-stat-accent {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(244, 114, 182, 0.08) 100%);
    border-color: rgba(167, 139, 250, 0.2);
}

.bento-stat-accent .stat-number {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Capabilities Card */
.bento-capabilities {
    grid-column: span 6;
}

.capabilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.cap-tag {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.cap-tag:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

/* Quote Card */
.bento-quote {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-color: rgba(52, 211, 153, 0.15);
}

.quote-icon {
    color: var(--color-accent-tertiary);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.bento-quote p {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Relocation Card */
.bento-relocation {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.relocation-flags {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    font-size: 2rem;
}

.relocation-flags span {
    transition: transform 0.3s ease;
    cursor: default;
}

.relocation-flags span:hover {
    transform: scale(1.3) translateY(-4px);
}

/* Philosophy Teaser */
.philosophy-teaser {
    padding: var(--space-5xl) 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.philosophy-teaser h2 {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-xl);
    color: var(--color-text-primary);
}

.philosophy-teaser blockquote {
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
    padding: 0 var(--space-lg);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-bg-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(96, 165, 250, 0.3);
}

/* Footer */
.footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    text-align: center;
}

.footer-logo {
    text-decoration: none;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-accent-primary);
}

.copyright {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-profile { grid-column: span 6; }
    .bento-story { grid-column: span 6; }
    .bento-stat { grid-column: span 6; }
    .bento-capabilities,
    .bento-quote,
    .bento-relocation { grid-column: span 6; }
}

@media (max-width: 768px) {
    .floating-logo,
    .floating-language {
        top: var(--space-md);
    }

    .floating-logo { left: var(--space-md); }
    .floating-language { right: var(--space-md); }

    .about-equation {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .equation-symbol {
        transform: rotate(90deg);
        font-size: var(--text-4xl);
    }

    .about-bento {
        grid-template-columns: 1fr;
    }

    .bento-profile,
    .bento-story,
    .bento-stat,
    .bento-capabilities,
    .bento-quote,
    .bento-relocation {
        grid-column: span 1;
    }

    .bento-profile { grid-row: span 1; }
}

@media (max-width: 480px) {
    .equation-number { font-size: 4rem; }
    .bento-avatar { width: 100px; height: 100px; }
    .bento-card { padding: var(--space-lg); }
    .page-hero { padding: 140px 0 60px; }
}
